:root {
    --primary-color: #4a6fa5;
    --secondary-color: #166088;
    --accent-color: #4fc3f7;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --card-shadow: 0 10px 20px rgba(0,0,0,0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: var(--text-color);
}

.profile-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: white;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.profile-sidebar {
    width: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.profile-sidebar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transform: rotate(30deg);
    animation: shimmer 15s infinite linear;
}

@keyframes shimmer {
    0% { transform: rotate(30deg) translate(-10%, -10%); }
    100% { transform: rotate(30deg) translate(10%, 10%); }
}

.profile-picture {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    margin-bottom: 15px;
    z-index: 1;
    transition: var(--transition);
}

.user-info {
    text-align: center;
    margin-bottom: 20px;
    z-index: 1;
}

.user-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.user-title {
    font-size: 13px;
    opacity: 0.8;
}

.nav-buttons {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1;
}

.nav-button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
    width: 100%;
    text-align: left;
}

.nav-button i {
    font-size: 16px;
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.nav-button.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.profile-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--light-bg);
}

.content-header {
    padding: 15px;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.content-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    position: relative;
}

.content-section {
    display: none;
    width: 100%;
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 15px;
}

.content-section.active {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 8px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 3px;
}

/* Dashboard Specific Styles */
.dashboard-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-box input {
    width: 100%;
    padding: 8px 15px 8px 35px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.search-box i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
    font-size: 14px;
}

.student-table {
            width: 100%;
            border-collapse: collapse;
            background: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 3px 10px rgba(0,0,0,0.05);
        }

        .student-table th, 
        .student-table td {
            padding: 12px 15px;
            text-align: left;
            border-bottom: 1px solid #eee;
        }

        .student-table th {
            background-color: var(--primary-color);
            color: white;
            font-weight: 500;
        }

        .student-table tr:hover {
            background-color: #f5f5f5;
        }

        .student-table tr:last-child td {
            border-bottom: none;
        }

.grade-cell {
    font-weight: 600;
    text-align: center;
}

.grade-A { color: #2ecc71; }
.grade-B { color: #3498db; }
.grade-C { color: #f39c12; }
.grade-D { color: #e74c3c; }
.grade-F { color: #c0392b; }

.action-btn {
    padding: 4px 8px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    transition: var(--transition);
}

/* Point history styles */
.point-history {
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.month-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.month-card {
    min-width: 100px;
    background: white;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.month-card.active {
    border-color: var(--accent-color);
    background-color: #f0f8ff;
}

.month-card h4 {
    margin-bottom: 5px;
    color: var(--secondary-color);
    font-size: 13px;
}

.month-card p {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
}

.point-details table {
    width: 100%;
    border-collapse: collapse;
}

.point-details th, 
.point-details td {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    text-align: left;
    font-size: 13px;
}

.point-details th {
    background-color: #f8f9fa;
    font-weight: 500;
}

/* Tablet and Desktop Styles */
@media (min-width: 768px) {
    .profile-container {
        flex-direction: row;
        height: 100vh;
    }
    
    .profile-sidebar {
        width: 280px;
        height: 100vh;
        padding: 30px;
        position: sticky;
        top: 0;
    }
    
    .profile-picture {
        width: 120px;
        height: 120px;
        margin-bottom: 20px;
    }
    
    .user-name {
        font-size: 22px;
    }
    
    .user-title {
        font-size: 14px;
    }
    
    .nav-buttons {
        gap: 10px;
    }
    
    .nav-button {
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .content-header {
        padding: 20px 30px;
    }
    
    .content-body {
        padding: 30px;
    }
    
    .content-section {
        padding: 25px;
        margin-bottom: 0;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .dashboard-controls {
        flex-direction: row;
        align-items: center;
    }
    
    .search-box {
        min-width: 250px;
    }
    
    .student-table th, 
    .student-table td {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .action-btn {
        padding: 5px 10px;
        font-size: 13px;
    }
    
    .month-selector {
        gap: 10px;
    }
    
    .month-card {
        min-width: 120px;
        padding: 15px;
    }
    
    .month-card h4 {
        font-size: 14px;
    }
    
    .month-card p {
        font-size: 24px;
    }
    
    .point-details th, 
    .point-details td {
        padding: 10px 15px;
    }
}

        .point-details th {
            background-color: #f8f9fa;
            font-weight: 500;
        }

        .point-change.positive {
            color: #2ecc71;
        }

        .point-change.negative {
            color: #e74c3c;
        }

        /* Responsive table */
        @media (max-width: 768px) {
            .student-table {
                display: block;
                overflow-x: auto;
            }
            
            .dashboard-controls {
                flex-direction: column;
            }
            
            .search-box, .combo-box {
                width: 100%;
            }

            .month-selector {
                flex-wrap: wrap;
            }

            .month-card {
                min-width: calc(50% - 10px);
            }
        }
                .absence-container {
            margin-top: 20px;
        }
        
        .absence-search {
            display: flex;
            align-items: center;
            background: white;
            padding: 10px 15px;
            border-radius: 8px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            margin-bottom: 20px;
        }
        
        .absence-search i {
            margin-right: 10px;
            color: #666;
        }
        
        .absence-search input {
            flex: 1;
            border: none;
            outline: none;
            font-size: 14px;
        }
        
        .absence-table {
            width: 100%;
            border-collapse: collapse;
            background: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        
        .absence-table th, 
        .absence-table td {
            padding: 12px 15px;
            text-align: left;
            border-bottom: 1px solid #f0f0f0;
        }
        
        .absence-table th {
            background-color: #f8f9fa;
            font-weight: 600;
            color: #333;
        }
        
        .absence-table tr:hover {
            background-color: #f9f9f9;
        }
        
        .absence-count {
            font-weight: bold;
            color: #e74c3c;
        }
                .absence-container {
            margin-top: 20px;
        }
        
        .absence-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        
        .absence-search {
            display: flex;
            align-items: center;
            background: white;
            padding: 10px 15px;
            border-radius: 8px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            width: 300px;
        }
        
        .absence-search i {
            margin-right: 10px;
            color: #666;
        }
        
        .absence-search input {
            flex: 1;
            border: none;
            outline: none;
            font-size: 14px;
        }
        
        .class-filter {
            padding: 10px 15px;
            border-radius: 8px;
            border: 1px solid #ddd;
            background: white;
        }
        
        .absence-table {
            width: 100%;
            border-collapse: collapse;
            background: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        
        .absence-table th, 
        .absence-table td {
            padding: 12px 15px;
            text-align: left;
            border-bottom: 1px solid #f0f0f0;
        }
        
        .absence-table th {
            background-color: #f8f9fa;
            font-weight: 600;
            color: #333;
        }
        
        .absence-table tr:hover {
            background-color: #f9f9f9;
        }
        
        .absence-count {
            font-weight: bold;
            color: #e74c3c;
        }
        
        .high-absence {
            background-color: #fff6f6;
        }
        
        .action-btn {
            padding: 6px 12px;
            border: none;
            border-radius: 4px;
            background-color: #3498db;
            color: white;
            cursor: pointer;
            font-size: 13px;
        }
        
        .action-btn:hover {
            background-color: #2980b9;
        }