/* Tệp: frontend/style.css */
/* Phiên bản: V-FINAL-TITLE VLT (Nút cũ + Tiêu đề 3D Siêu To Khổng Lồ VLT) */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f9;
    margin: 0;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* --- 1. TIÊU ĐỀ 3D SIÊU TO (ĐÃ SỬA THEO YÊU CẦU) --- */
h1 {
    text-align: center;
    margin: 20px 0 40px 0;
    
    /* Font chữ to gấp đôi */
    font-size: 60px; 
    font-weight: 900; /* Siêu đậm */
    text-transform: uppercase;
    line-height: 1.1;
    
    /* Màu Xanh Dương Đậm */
    color: #0056b3; 
    
    /* Kỹ thuật tạo Viền Vàng + Bóng Đổ 3D */
    text-shadow: 
        /* Tạo viền vàng xung quanh chữ */
        -2px -2px 0 #FFD700,  
         2px -2px 0 #FFD700,
        -2px  2px 0 #FFD700,
         2px  2px 0 #FFD700,
         
        /* Tạo bóng đổ 3D màu xám đậm phía dưới */
         4px  4px 0px #aaa,
         6px  6px 5px rgba(0,0,0,0.3);
         
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
}

/* --- CÁC PHẦN DƯỚI GIỮ NGUYÊN BẢN CŨ --- */

.header-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
#user-name { font-weight: bold; color: #007bff; margin-right: 15px; }
.nav-link { color: #666; margin-left: 10px; text-decoration: none; font-size: 14px; }
.nav-link:hover { color: #0056b3; text-decoration: underline; }
.logout-link { color: #dc3545; font-weight: bold; text-decoration: none; }

.upload-box {
    background: #fafafa;
    border: 2px dashed #999; /* Viền đậm */
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
}
.section-title { margin-top: 0; font-size: 1.1em; color: #333; font-weight: bold; }

input[type="file"] {
    display: block;
    width: 100%; padding: 10px; background: #fff;
    border: 1px solid #ddd; border-radius: 5px; margin-top: 10px; cursor: pointer;
}

/* --- BUTTONS (STYLE CŨ: KHỐI ĐẶC) --- */
.button-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

button {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    color: white;
    transition: opacity 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
button:hover { opacity: 0.9; }
button:disabled { background-color: #ccc !important; cursor: not-allowed; }

/* Nút Chính (Xanh Dương Đậm) */
#grade-btn, #login-btn, #signup-btn, #submit-password-btn, #send-reset-btn {
    background-color: #007bff; 
}

/* 2. Nút Phụ (Tải mẫu, Tùy chỉnh) - HIỆU ỨNG ĐẶC BIỆT */
.button-secondary {
    background-color: #6c757d !important; /* Mặc định Xám */
    color: white !important;
    margin-right: 10px;
    transition: all 0.3s ease; /* Mượt mà */
}

/* KHI RÊ CHUỘT (HOVER) -> CHUYỂN XANH DƯƠNG + NỔI LÊN */
.button-secondary:hover {
    background-color: #007bff !important; /* Chuyển Xanh */
    transform: translateY(-3px); /* Nổi lên 3px */
    box-shadow: 0 5px 10px rgba(0,123,255,0.4); /* Bóng xanh tỏa sáng */
}

/* 3. Nút Kiểm tra Đáp án (Debug) - Áp dụng hiệu ứng tương tự */
#debug-btn {
    padding: 6px 15px;
    font-size: 13px;
    margin-left: auto;
    
    /* Mặc định Xám (cho đồng bộ với nút phụ) */
    background-color: #6c757d; 
    color: white;
}

#debug-btn:hover {
    background-color: #007bff; /* Chuyển Xanh */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.4);
}

/* --- RESULT & MESSAGE --- */
#grade-message { text-align: center; font-weight: bold; margin: 15px 0; padding: 10px; border-radius: 5px; }
.error { color: #721c24; background-color: #f8d7da; border: 1px solid #f5c6cb; }
.success { color: #155724; background-color: #d4edda; border: 1px solid #c3e6cb; }

#debug-result-area {
    background: #282c34; color: #0f0; padding: 15px; border-radius: 6px;
    font-family: monospace; font-size: 12px; max-height: 300px; overflow: auto; display: none;
}

#grading-summary {
    background: #f0fff4; border: 2px solid #28a745; text-align: center;
    padding: 20px; border-radius: 8px; margin-top: 20px;
}
.button-download {
    display: inline-block; padding: 10px 20px; background: #28a745; color: white;
    text-decoration: none; border-radius: 5px; font-weight: bold;
}

/* --- AUTH FORM --- */
#auth-form, #forgot-password-form {
    max-width: 400px; margin: 40px auto; padding: 30px;
    border: 1px solid #ddd; border-radius: 8px; background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
#auth-form input { width: 100%; padding: 12px; margin: 10px 0; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; }
#auth-form h2 { text-align: center; color: #007bff; margin-bottom: 20px; }
#auth-form button { width: 100%; margin-top: 10px; }

