/* ÜMUMİ AYARLAR */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    color: #333;
}

/* LOGIN SƏHİFƏSİ */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.login-box h1 {
    text-align: center;
    color: #667eea;
    margin-bottom: 10px;
}

.login-box h2 {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 14px;
    transition: border 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-login:hover {
    background: #5568d3;
}

/* DASHBOARD */
.dashboard-page {
    display: flex;
    min-height: 100vh;
}

.dashboard-container {
    display: flex;
    width: 100%;
}

/* SOL PANEL (MENYU) */
.sidebar {
    width: 250px;
    background: #2c3e50;
    color: white;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}

.logo {
    padding: 0 20px 30px;
    border-bottom: 1px solid #34495e;
}

.logo h3 {
    color: #3498db;
    font-size: 24px;
}

.menu {
    flex: 1;
    padding: 20px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #ecf0f1;
    text-decoration: none;
    transition: background 0.3s;
}

.menu-item:hover {
    background: #34495e;
}

.menu-item.active {
    background: #3498db;
    border-left: 4px solid #2980b9;
}

.menu-item .icon {
    font-size: 20px;
    margin-right: 15px;
}

.logout-btn {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #e74c3c;
    text-decoration: none;
    border-top: 1px solid #34495e;
    transition: background 0.3s;
}

.logout-btn:hover {
    background: #34495e;
}

.logout-btn .icon {
    font-size: 20px;
    margin-right: 15px;
}

/* SAĞ PANEL (PROFİL) */
.profile-panel {
    width: 300px;
    background: white;
    padding: 30px 20px;
    border-left: 1px solid #e0e0e0;
}

.profile-card {
    text-align: center;
}

.profile-avatar {
    margin-bottom: 20px;
}

.profile-avatar img {
    border-radius: 50%;
    border: 3px solid #3498db;
}

.profile-card h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.profile-info {
    text-align: left;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.profile-info p {
    margin-bottom: 10px;
    color: #555;
}

.profile-info p:last-child {
    margin-bottom: 0;
}

/* MƏRKƏZİ HİSSƏ */
.main-content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 28px;
}

/* CƏDVƏLLƏR */
.table-container {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: #3498db;
    color: white;
}

th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

tbody tr:hover {
    background: #f8f9fa;
}

/* STATUS BADGE-LƏRİ */
.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.keçdi {
    background: #d4edda;
    color: #155724;
}

.status-badge.qaldı {
    background: #f8d7da;
    color: #721c24;
}

/* QIYMƏT BADGE-LƏRİ */
.grade-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.grade-excellent {
    background: #d4edda;
    color: #155724;
}

.grade-good {
    background: #cce5ff;
    color: #004085;
}

.grade-satisfactory {
    background: #fff3cd;
    color: #856404;
}

.grade-fail {
    background: #f8d7da;
    color: #721c24;
}

/* SERTİFİKATLAR */
.certificates-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.certificate-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cert-info h4 {
    margin-bottom: 5px;
    color: #2c3e50;
}

.cert-info p {
    color: #7f8c8d;
    font-size: 14px;
}

.btn-download {
    padding: 10px 20px;
    background: #27ae60;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-download:hover {
    background: #229954;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .profile-panel {
        width: 250px;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .profile-panel {
        width: 100%;
    }
}