* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    color: #333;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px 0;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.header-content {
    position: relative;
    z-index: 1;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

header p {
    font-size: 1rem;
    opacity: 0.9;
}

h2 {
    margin-bottom: 20px;
    color: #6a11cb;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #6a11cb, #2575fc);
    border-radius: 3px;
}

.tabs {
    display: flex;
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tab-btn {
    flex: 1;
    padding: 15px;
    background-color: #f8f9fa;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tab-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #6a11cb, #2575fc);
    transition: all 0.3s ease;
}

.tab-btn:hover:before {
    left: 0;
}

.tab-btn:hover {
    background-color: #e9ecef;
}

.tab-btn.active {
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
    color: #6a11cb;
    font-weight: 700;
}

.tab-btn.active:before {
    left: 0;
}

.tab-content {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #6a11cb;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

input:focus, select:focus, textarea:focus {
    border-color: #6a11cb;
    box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.1);
    outline: none;
}

textarea {
    height: 100px;
    resize: vertical;
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    z-index: -2;
}

.btn:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    z-index: -1;
}

.btn:hover:before {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5e0fb6 0%, #1e68e0 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #0e8b82 0%, #32d870 100%);
}

.btn-danger {
    background: linear-gradient(135deg, #cb2d3e 0%, #ef473a 100%);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #b52835 0%, #d64033 100%);
}

.search-container {
    display: flex;
    margin-bottom: 20px;
}

.search-container input {
    flex: 1;
    margin-right: 10px;
}

.student-details {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background-color: #f9f9f9;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.student-details:empty {
    display: none;
}

.students-list {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

th, td {
    padding: 12px 15px;
    text-align: left;
}

th {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    font-weight: 600;
}

tr:hover {
    background-color: #f1f1f1;
}

.action-btn {
    padding: 8px 12px;
    background-color: #2575fc;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 5px;
}

.action-btn:hover {
    background-color: #6a11cb;
}

.delete-btn {
    background: linear-gradient(135deg, #cb2d3e 0%, #ef473a 100%);
}

.delete-btn:hover {
    background: linear-gradient(135deg, #b52835 0%, #d64033 100%);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    margin: auto;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 80%;
    max-width: 600px;
    position: relative;
    animation: modalOpen 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes modalOpen {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close, .close-edit {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #6a11cb;
}

.close:hover, .close-edit:hover {
    color: #2575fc;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.modal-actions button {
    min-width: 100px;
}

.student-info {
    margin-bottom: 30px;
}

.student-info p {
    margin: 10px 0;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #6a11cb;
}

.student-info strong {
    color: #6a11cb;
    display: inline-block;
    width: 120px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .tabs {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .search-container input {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* Add these styles to your existing styles.css */
.user-actions {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.btn-logout {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.btn-logout:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.2) 100%);
    transform: translateY(-2px);
}

.btn-logout i {
    margin-right: 5px;
    font-size: 14px;
}

.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.initials-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.user-name {
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-actions {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    padding: 15px;
    background: linear-gradient(135deg, rgba(106, 17, 203, 0.05) 0%, rgba(37, 117, 252, 0.05) 100%);
    border-radius: 12px;
}

.admin-actions button {
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.admin-actions i {
    margin-right: 8px;
    font-size: 18px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    min-width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    box-shadow: 0 5px 10px rgba(106, 17, 203, 0.3);
}

.stat-icon i {
    font-size: 24px;
}

.stat-info h3 {
    font-size: 14px;
    margin-bottom: 5px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-info p {
    font-size: 24px;
    font-weight: 700;
    color: #6a11cb;
    margin: 0;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.05);
}

.dashboard-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.chart-container {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.chart-container h3 {
    margin-bottom: 15px;
    color: #6a11cb;
    font-size: 18px;
    position: relative;
    display: inline-block;
}

.recent-students {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.recent-students h3 {
    color: #6a11cb;
    margin-bottom: 15px;
    font-size: 18px;
    position: relative;
    display: inline-block;
}

.recent-students-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.recent-student-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.recent-student-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.recent-student-card h4 {
    margin-bottom: 5px;
    color: #6a11cb;
}

.recent-student-card p {
    margin: 5px 0;
    font-size: 14px;
    color: #555;
}

.recent-student-card .timestamp {
    font-size: 12px;
    color: #888;
    margin-top: 10px;
    display: block;
    border-top: 1px solid #eee;
    padding-top: 8px;
}

/* Attendance Styles */
.attendance-controls {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(106, 17, 203, 0.05) 0%, rgba(37, 117, 252, 0.05) 100%);
    border-radius: 12px;
}

.attendance-list {
    margin-bottom: 30px;
}

.attendance-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.attendance-status {
    display: flex;
    gap: 10px;
}

.status-radio {
    display: none;
}

.status-label {
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.status-label.present {
    background-color: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border-color: #2ecc71;
}

.status-label.absent {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border-color: #e74c3c;
}

.status-label.late {
    background-color: rgba(241, 196, 15, 0.1);
    color: #f1c40f;
    border-color: #f1c40f;
}

.status-radio:checked + .status-label.present {
    background-color: #2ecc71;
    color: white;
}

.status-radio:checked + .status-label.absent {
    background-color: #e74c3c;
    color: white;
}

.status-radio:checked + .status-label.late {
    background-color: #f1c40f;
    color: white;
}

.attendance-notes {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
    min-height: 60px;
}

.attendance-history {
    margin-top: 40px;
}

.attendance-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.calendar-header {
    grid-column: span 7;
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: #6a11cb;
    font-weight: 600;
}

.calendar-day {
    aspect-ratio: 1 / 1;
    padding: 5px;
    border-radius: 8px;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.calendar-day:hover {
    background-color: #f1f1f1;
}

.calendar-day .date {
    font-size: 16px;
    font-weight: 600;
}

.calendar-day .attendance-count {
    font-size: 12px;
    color: #888;
}

.calendar-day.has-attendance {
    border-color: #6a11cb;
}

.calendar-day.today {
    background-color: rgba(106, 17, 203, 0.1);
}

.calendar-day.other-month {
    opacity: 0.5;
}

.calendar-day .attendance-summary {
    display: none;
    position: absolute;
    z-index: 100;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 200px;
    font-size: 14px;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border-left: 4px solid #6a11cb;
}

.calendar-day:hover .attendance-summary {
    display: block;
    transform: translateY(0);
}

.calendar-day .attendance-summary::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

/* Filter options for all students */
.filter-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(106, 17, 203, 0.05) 0%, rgba(37, 117, 252, 0.05) 100%);
    border-radius: 12px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    margin-bottom: 5px;
}

.export-options {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

/* Performance Analytics Styles */
.performance-filters {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(106, 17, 203, 0.05) 0%, rgba(37, 117, 252, 0.05) 100%);
    border-radius: 12px;
}

.performance-overview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.performance-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.performance-details {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.performance-details h3 {
    color: #6a11cb;
    margin-bottom: 15px;
    font-size: 18px;
}

#assessment-table {
    width: 100%;
    border-collapse: collapse;
}

#assessment-table th,
#assessment-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

#assessment-table th {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
}

#assessment-table tr:hover {
    background-color: #f9f9f9;
}

.grade-a {
    color: #2ecc71;
    font-weight: 600;
}

.grade-b {
    color: #3498db;
    font-weight: 600;
}

.grade-c {
    color: #f1c40f;
    font-weight: 600;
}

.grade-d {
    color: #e67e22;
    font-weight: 600;
}

.grade-f {
    color: #e74c3c;
    font-weight: 600;
}

/* Academic Dashboard Styles */
.academic-container {
    display: flex;
    min-height: calc(100vh - 70px);
    margin-top: 70px;
    background: #f8f9fa;
}

/* Sidebar Styles */
.sidebar {
    width: 250px;
    background: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
}

.academic-menu {
    list-style: none;
    padding: 0;
}

.academic-menu li {
    margin-bottom: 5px;
}

.academic-menu a {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.academic-menu a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.academic-menu a:hover,
.academic-menu a.active {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    padding: 30px;
}

.academic-section {
    margin-bottom: 40px;
}

.academic-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
}

/* Form Styles */
.academic-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #6a11cb;
    box-shadow: 0 0 0 2px rgba(106, 17, 203, 0.1);
    outline: none;
}

/* Analytics Dashboard Styles */
.analytics-dashboard {
    padding: 20px;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.analytics-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.analytics-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.analytics-content {
    height: 250px;
    position: relative;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 5px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

.notification.success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.notification.error {
    background: linear-gradient(135deg, #cb2d3e 0%, #ef473a 100%);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .academic-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .academic-menu {
        display: flex;
        overflow-x: auto;
        padding: 10px;
    }

    .academic-menu li {
        margin: 0 5px;
    }

    .academic-menu a {
        padding: 10px 15px;
        white-space: nowrap;
    }

    .main-content {
        padding: 20px;
    }

    .analytics-grid {
        grid-template-columns: 1fr;
    }
} 