:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --success-color: #28a745;
    --success-hover: #218838;
    --bg-main: #f3f4f6; /* Gözü yormayan sakit fon */
    --text-dark: #111827;
    --text-muted: #6b7280;
}

body { 
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; 
    background-color: var(--bg-main); 
    min-height: 100vh;
    display: flex; 
    align-items: center;
    justify-content: center; 
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

/* Orta Kart Strukturu (Şagird və Admin üçün) */
.wrapper, .container { 
    width: 100%; 
    max-width: 650px; 
    background: #ffffff; 
    padding: 40px; 
    border-radius: 12px; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
}

.container {
    max-width: 550px; /* Admin paneli üçün bir az daha yığcam */
}

h2, h3, h4 { 
    color: var(--text-dark); 
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 600;
}

h2 { font-size: 26px; text-align: center; letter-spacing: -0.5px; }
h3 { font-size: 20px; }
h4 { font-size: 16px; margin-bottom: 10px; color: #374151; }

.subtitle {
    text-align: center; 
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 30px;
    line-height: 1.5;
}

.search-box { 
    display: flex; 
    gap: 12px; 
    margin-bottom: 20px; 
}

/* Forma Elementləri */
input, select { 
    width: 100%; 
    padding: 14px 18px; 
    margin: 8px 0 16px 0; 
    box-sizing: border-box; 
    border: 1px solid #d1d5db; 
    border-radius: 6px; 
    font-size: 15px; 
    color: var(--text-dark);
    background: #ffffff;
}

.search-box input {
    margin: 0; /* Axtarış xanası üçün kənar boşluğun sıfırlanması */
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Düymələr */
button { 
    width: 100%;
    padding: 14px 28px; 
    background: var(--success-color); 
    color: white; 
    border: none; 
    border-radius: 6px; 
    font-size: 15px;
    font-weight: 500; 
    cursor: pointer; 
    transition: background 0.2s ease;
}

button:hover { 
    background: var(--success-hover); 
}

.search-box button {
    width: auto;
    background: var(--primary-color);
    margin: 0;
}

.search-box button:hover {
    background: var(--primary-hover);
}

/* Xəta və Bildirişlər */
.error { 
    color: #b91c1c; 
    background: #fef2f2; 
    border: 1px solid #fee2e2;
    padding: 12px; 
    border-radius: 6px; 
    margin-bottom: 20px; 
    text-align: center; 
    font-size: 14px;
}

/* Admin Blokları və Sətirləri */
.row { 
    display: flex; 
    gap: 12px; 
}

.row div {
    flex: 1;
}

.row label {
    font-size: 13px;
    color: var(--text-muted);
    display: block;
    margin-bottom: -4px;
}

.section { 
    background: #f9fafb; 
    padding: 20px; 
    border-radius: 8px; 
    margin-top: 20px; 
    border: 1px solid #e5e7eb;
}

label b {
    font-size: 14px;
    color: #374151;
    display: block;
    margin-top: 5px;
}

.logout-link { 
    color: #ef4444; 
    text-decoration: none; 
    font-size: 14px; 
    font-weight: 500;
}
        
.logout-link:hover { 
    text-decoration: underline; 
}

/* Nəticə Kartı (Şagird Paneli Üçün) */
.result-card { 
    background: #ffffff; 
    border: 1px solid #e5e7eb; 
    border-radius: 8px; 
    padding: 20px; 
    margin-top: 25px;
}

.result-header { 
    font-size: 18px; 
    font-weight: 600; 
    color: var(--primary-color); 
    border-bottom: 1px solid #e5e7eb; 
    padding-bottom: 10px; 
    margin-bottom: 15px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.table-res { 
    width: 100%; 
    border-collapse: collapse; 
}

.table-res th, .table-res td { 
    padding: 12px; 
    text-align: center; 
    font-size: 14px;
}

.table-res th { 
    background: #f9fafb; 
    color: #374151;
    font-weight: 500;
    border-bottom: 1px solid #e5e7eb;
}

.table-res td {
    border-bottom: 1px solid #f3f4f6;
    color: #4b5563;
}

.score-badge { 
    background: #10b981; 
    color: white; 
    padding: 6px 14px; 
    border-radius: 4px; 
    font-size: 14px; 
    font-weight: 600; 
}

.pdf-btn { 
    display: inline-block;
    background: #ef4444; 
    color: white; 
    padding: 8px 14px; 
    text-decoration: none; 
    border-radius: 4px; 
    font-size: 13px; 
    font-weight: 500; 
    margin-top: 12px;
}

.pdf-btn:hover { 
    background: #dc2626; 
}

.result-title-main {
    font-size: 18px;
    color: var(--text-dark);
    margin-top: 25px;
    margin-bottom: 10px;
    font-weight: 600;
    text-align: left;
}
