/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Pastel Theme Variables */
:root {
    --accent: #b173f0;
    --accent-light: #e8dcfa;
    --accent-gradient: linear-gradient(135deg, #c59ffc, #f7b1ff);
    --accent-hover: #9d5fe0;
    --text-soft: #666;
    --text-dark: #3a2d50;
    --card-bg: #ffffff;
    --bg-main: #f6f0f7;
    --success: #a8e6cf;
    --success-dark: #7dd3a0;
    --danger: #ffb3ba;
    --danger-dark: #ff8a95;
    --warning: #ffd3a5;
    --info: #c7ceea;
}

body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
    font-weight: 400;
}

/* Login Page Styles */
.login-page {
    background: var(--accent-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    box-shadow:
        8px 8px 20px rgba(201, 185, 211, 0.4),
        -8px -8px 20px rgba(255, 255, 255, 0.9);
    border: none;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header .logo {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 10px;
    font-weight: 600;
}

.login-header p {
    color: var(--text-soft);
    font-size: 1.1rem;
    font-weight: 400;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.error-message {
    background: var(--danger);
    color: #8b2635;
    padding: 12px;
    border-radius: 12px;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow:
        inset 2px 2px 4px rgba(255, 142, 149, 0.3),
        inset -2px -2px 4px rgba(255, 255, 255, 0.8);
}

/* App Container */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: var(--card-bg);
    border-bottom: none;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow:
        4px 4px 12px rgba(201, 185, 211, 0.4),
        -4px -4px 12px rgba(255, 255, 255, 0.9);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.burger-menu {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    gap: 3px;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.logo {
    font-size: 1.8rem;
    color: var(--accent);
    font-weight: 600;
}

.nav {
    display: flex;
    gap: 10px;
}

.nav-link {
    background: transparent;
    border: none;
    color: var(--text-dark);
    padding: 12px 20px;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: none;
    font-family: 'Poppins', sans-serif;
}

.nav-link:hover {
    background: transparent;
    color: var(--accent);
}

.nav-link.active {
    background: transparent;
    color: var(--accent);
    font-weight: 600;
    box-shadow: none;
    border-bottom: 2px solid var(--accent);
}

.nav-btn {
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow:
        3px 3px 8px rgba(190, 150, 255, 0.3),
        -3px -3px 8px rgba(255, 255, 255, 0.6);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        5px 5px 12px rgba(190, 150, 255, 0.4),
        -5px -5px 12px rgba(255, 255, 255, 0.8);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-soft);
}

.btn-checkin {
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow:
        3px 3px 8px rgba(190, 150, 255, 0.3),
        -3px -3px 8px rgba(255, 255, 255, 0.6);
}

.btn-checkin:hover {
    transform: translateY(-2px);
    box-shadow:
        5px 5px 12px rgba(190, 150, 255, 0.4),
        -5px -5px 12px rgba(255, 255, 255, 0.8);
}

.logout-btn {
    background: transparent;
    border: none;
    color: var(--text-soft);
    padding: 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: var(--accent-light);
    color: var(--accent);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 30px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

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

.dashboard-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 20px;
    border: none;
    text-align: center;
    box-shadow:
        8px 8px 20px rgba(201, 185, 211, 0.4),
        -8px -8px 20px rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow:
        6px 6px 16px rgba(201, 185, 211, 0.5),
        -6px -6px 16px rgba(255, 255, 255, 0.9);
}

.dashboard-card h3 {
    color: var(--text-soft);
    margin-bottom: 15px;
    font-size: 1rem;
    font-weight: 500;
}

.card-number {
    font-size: 2.5rem;
    color: var(--accent);
    font-weight: 600;
}

.card-value {
    font-size: 1.1rem;
    color: var(--text-soft);
    margin-top: 8px;
    font-weight: 400;
}

.recent-activity {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 20px;
    border: none;
    box-shadow:
        8px 8px 20px rgba(201, 185, 211, 0.4),
        -8px -8px 20px rgba(255, 255, 255, 0.9);
}

.recent-activity h3 {
    margin-bottom: 20px;
    color: var(--text-dark);
    font-weight: 600;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.section-header h2 {
    color: var(--text-dark);
    font-size: 1.8rem;
    font-weight: 600;
}

/* Buttons */
.btn {
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow:
        3px 3px 8px rgba(190, 150, 255, 0.3),
        -3px -3px 8px rgba(255, 255, 255, 0.6);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow:
        5px 5px 12px rgba(190, 150, 255, 0.4),
        -5px -5px 12px rgba(255, 255, 255, 0.8);
}

.btn-secondary {
    background: var(--info);
    color: var(--text-dark);
    box-shadow:
        3px 3px 8px rgba(199, 206, 234, 0.3),
        -3px -3px 8px rgba(255, 255, 255, 0.6);
}

.btn-secondary:hover {
    background: #b5bee0;
}

.btn-success {
    background: var(--success);
    color: #2d5a3d;
    box-shadow:
        3px 3px 8px rgba(168, 230, 207, 0.3),
        -3px -3px 8px rgba(255, 255, 255, 0.6);
}

.btn-success:hover {
    background: var(--success-dark);
}

.btn-danger {
    background: var(--danger);
    color: #8b2635;
    box-shadow:
        3px 3px 8px rgba(255, 179, 186, 0.3),
        -3px -3px 8px rgba(255, 255, 255, 0.6);
}

.btn-danger:hover {
    background: var(--danger-dark);
}

.btn-sm {
    padding: 8px 12px;
    font-size: 0.85rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: #f9f5fb;
    border: none;
    border-radius: 12px;
    color: var(--text-dark);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    box-shadow:
        inset 4px 4px 6px rgba(200, 180, 220, 0.3),
        inset -4px -4px 6px rgba(255, 255, 255, 0.9);
    transition: box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    box-shadow:
        inset 3px 3px 8px rgba(190, 150, 255, 0.4),
        inset -3px -3px 8px rgba(255, 255, 255, 0.8);
}

/* Courses Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Locations Grid */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.location-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 20px;
    border: none;
    transition: all 0.3s ease;
    box-shadow:
        8px 8px 20px rgba(201, 185, 211, 0.4),
        -8px -8px 20px rgba(255, 255, 255, 0.9);
}

.location-card:hover {
    transform: translateY(-3px);
    box-shadow:
        6px 6px 16px rgba(201, 185, 211, 0.5),
        -6px -6px 16px rgba(255, 255, 255, 0.9);
}

.location-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.location-header h3 {
    color: var(--accent);
    margin: 0;
    font-weight: 600;
}

.location-fee {
    background: var(--accent-gradient);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow:
        2px 2px 6px rgba(190, 150, 255, 0.3),
        -2px -2px 6px rgba(255, 255, 255, 0.6);
}

.location-details {
    margin-bottom: 20px;
}

.location-details p {
    margin-bottom: 8px;
    color: var(--text-soft);
}

.location-details strong {
    color: var(--accent);
    font-weight: 600;
}

.location-actions {
    display: flex;
    gap: 10px;
}

.course-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 20px;
    border: none;
    transition: all 0.3s ease;
    box-shadow:
        8px 8px 20px rgba(201, 185, 211, 0.4),
        -8px -8px 20px rgba(255, 255, 255, 0.9);
}

.course-card:hover {
    transform: translateY(-3px);
    box-shadow:
        6px 6px 16px rgba(201, 185, 211, 0.5),
        -6px -6px 16px rgba(255, 255, 255, 0.9);
}

.course-card h3 {
    color: var(--accent);
    margin-bottom: 10px;
    font-weight: 600;
}

.course-card p {
    color: var(--text-soft);
    margin-bottom: 20px;
}

.course-actions {
    display: flex;
    gap: 10px;
}

/* Students Table */
.students-table {
    background: var(--card-bg);
    border-radius: 20px;
    border: none;
    overflow: hidden;
    box-shadow:
        8px 8px 20px rgba(201, 185, 211, 0.4),
        -8px -8px 20px rgba(255, 255, 255, 0.9);
}

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

.students-table th,
.students-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.students-table th {
    background: var(--accent-light);
    color: var(--text-dark);
    font-weight: 600;
}

.students-table td {
    color: var(--text-dark);
}

.credits {
    font-weight: 600;
    color: var(--success-dark);
}

.credits.negative {
    color: var(--danger-dark);
}

.credits.free-lesson-credits {
    color: var(--text-dark);
}

.students-table tr.has-free-lesson {
    font-weight: 600;
}

.students-table tr[data-student-id] {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.students-table tr[data-student-id]:hover {
    background-color: var(--accent-light);
}

.students-table tr[data-student-id]:hover td {
    background-color: transparent;
}

/* Student name tooltip */
.student-name-tooltip {
    position: relative;
    cursor: help;
    display: inline-block;
}

.student-name-tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 10px;
    background-color: var(--text-dark);
    color: var(--card-bg);
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.student-name-tooltip:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--text-dark);
    z-index: 1000;
    margin-bottom: -5px;
    pointer-events: none;
}

/* Schedule */
.schedule-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
}

.courses-panel {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 20px;
    border: none;
    height: fit-content;
    box-shadow:
        8px 8px 20px rgba(201, 185, 211, 0.4),
        -8px -8px 20px rgba(255, 255, 255, 0.9);
}

.courses-panel h3 {
    margin-bottom: 20px;
    color: var(--text-dark);
    font-weight: 600;
}

.courses-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.course-item {
    background: var(--accent-light);
    padding: 12px;
    border-radius: 12px;
    cursor: move;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: none;
    box-shadow:
        inset 2px 2px 4px rgba(200, 180, 220, 0.3),
        inset -2px -2px 4px rgba(255, 255, 255, 0.8);
}

.course-item:hover {
    background: var(--accent);
    color: white;
    box-shadow:
        3px 3px 8px rgba(190, 150, 255, 0.3),
        -3px -3px 8px rgba(255, 255, 255, 0.6);
}

.course-item.dragging {
    opacity: 0.5;
}

.calendar-panel {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 20px;
    border: none;
    box-shadow:
        8px 8px 20px rgba(201, 185, 211, 0.4),
        -8px -8px 20px rgba(255, 255, 255, 0.9);
}

/* Three Day Calendar */
.three-day-calendar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    background: var(--card-bg);
    border-radius: 20px;
    padding: 20px;
    border: none;
    box-shadow:
        8px 8px 20px rgba(201, 185, 211, 0.4),
        -8px -8px 20px rgba(255, 255, 255, 0.9);
}

.day-column {
    background: var(--accent-light);
    border-radius: 12px;
    overflow: hidden;
    border: none;
    box-shadow:
        inset 2px 2px 4px rgba(200, 180, 220, 0.3),
        inset -2px -2px 4px rgba(255, 255, 255, 0.8);
}

.day-header {
    background: var(--accent-light);
    padding: 15px;
    text-align: center;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
}

.day-header.today {
    background: var(--accent-gradient);
    color: white;
    box-shadow:
        3px 3px 8px rgba(190, 150, 255, 0.3),
        -3px -3px 8px rgba(255, 255, 255, 0.6);
}

.day-name {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.day-date {
    font-size: 0.9rem;
    opacity: 0.8;
}

.day-slots {
    padding: 10px;
    min-height: 400px;
}

.day-slot {
    min-height: 50px;
    border-bottom: 1px solid rgba(200, 180, 220, 0.3);
    padding: 8px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.day-slot:last-child {
    border-bottom: none;
}

.slot-time {
    width: 60px;
    font-size: 0.8rem;
    color: var(--text-soft);
    flex-shrink: 0;
}

.slot-content {
    flex: 1;
    min-height: 40px;
    display: flex;
    align-items: center;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.slot-content.droppable {
    background: var(--accent-light);
    border: 2px dashed var(--accent);
    border-radius: 12px;
}

.scheduled-class-compact {
    background: var(--accent-gradient);
    color: white;
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2px;
    box-shadow:
        2px 2px 6px rgba(190, 150, 255, 0.3),
        -2px -2px 6px rgba(255, 255, 255, 0.6);
}

.scheduled-class-compact:hover {
    transform: scale(1.02);
    box-shadow:
        4px 4px 10px rgba(190, 150, 255, 0.4),
        -4px -4px 10px rgba(255, 255, 255, 0.8);
}

.class-name-compact {
    font-weight: bold;
    font-size: 0.9rem;
}

.class-location-compact {
    font-size: 0.7rem;
    opacity: 0.9;
    color: #121212;
}

.class-time-compact {
    font-size: 0.7rem;
    opacity: 0.8;
}

.timeline-day {
    background: white;
    border-bottom: 1px solid #e0e0e0;
}

.timeline-day:last-child {
    border-bottom: none;
}

.timeline-day-header {
    background: #3a3a3a;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: #e0e0e0;
    border-bottom: 1px solid #4a4a4a;
}

.timeline-day.today .timeline-day-header {
    background: var(--accent-gradient);
    border-color: var(--accent);
}

.day-date {
    font-size: 1.1rem;
}

.day-name {
    color: #121212;
    font-size: 0.9rem;
}

.timeline-slots {
    display: flex;
    flex-direction: column;
}

.time-slot {
    min-height: 60px;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    display: flex;
    align-items: stretch;
}

.time-slot:last-child {
    border-bottom: none;
}

.time-label {
    width: 80px;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-soft);
    border-right: 1px solid rgba(200, 180, 220, 0.3);
    flex-shrink: 0;
}

.slot-content {
    flex: 1;
    padding: 8px 15px;
    position: relative;
    min-height: 60px;
}

.slot-content.droppable {
    background: var(--accent-light);
    border: 2px dashed var(--accent);
    border-radius: 12px;
}

.scheduled-class {
    background: var(--accent-gradient);
    color: white;
    padding: 8px 12px;
    border-radius: 12px;
    margin: 4px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow:
        2px 2px 6px rgba(190, 150, 255, 0.3),
        -2px -2px 6px rgba(255, 255, 255, 0.6);
}

.scheduled-class:hover {
    transform: translateY(-1px);
    box-shadow:
        4px 4px 10px rgba(190, 150, 255, 0.4),
        -4px -4px 10px rgba(255, 255, 255, 0.8);
}

.class-time {
    font-size: 0.8rem;
    opacity: 0.9;
}

.class-name {
    font-weight: 600;
    flex: 1;
    margin: 0 10px;
}

.class-location {
    font-size: 0.8rem;
    color: var(--warning);
    font-weight: 500;
}

.class-instructor {
    font-size: 0.8rem;
    opacity: 0.8;
}

.class-attendance {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
    margin-left: 8px;
}

.schedule-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-navigation {
    display: flex;
    align-items: center;
    gap: 15px;
}

#current-dates {
    font-size: 1.2rem;
    color: #121212;
    font-weight: bold;
    min-width: 200px;
    text-align: center;
}

/* Check In */
.checkin-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.checkin-main-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.checkin-left,
.checkin-right {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 20px;
    border: none;
    box-shadow:
        8px 8px 20px rgba(201, 185, 211, 0.4),
        -8px -8px 20px rgba(255, 255, 255, 0.9);
}

.checkin-right {
    max-height: 600px;
    display: flex;
    flex-direction: column;
}

.checkin-content > div {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 20px;
    border: none;
    box-shadow:
        8px 8px 20px rgba(201, 185, 211, 0.4),
        -8px -8px 20px rgba(255, 255, 255, 0.9);
}

.checkin-content h3 {
    margin-bottom: 20px;
    color: var(--text-dark);
    font-weight: 600;
}

#student-search {
    width: 100%;
    margin-bottom: 20px;
    padding: 12px;
    background: #f9f5fb;
    border: none;
    border-radius: 12px;
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
    box-shadow:
        inset 4px 4px 6px rgba(200, 180, 220, 0.3),
        inset -4px -4px 6px rgba(255, 255, 255, 0.9);
}

.students-list {
    max-height: 300px;
    overflow-y: auto;
}

.student-item {
    padding: 12px;
    border-bottom: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--accent-light);
    border-radius: 12px;
    margin-bottom: 8px;
    border: none;
    box-shadow:
        inset 2px 2px 4px rgba(200, 180, 220, 0.3),
        inset -2px -2px 4px rgba(255, 255, 255, 0.8);
}

.student-item:hover {
    background: var(--accent);
    color: white;
    box-shadow:
        3px 3px 8px rgba(190, 150, 255, 0.3),
        -3px -3px 8px rgba(255, 255, 255, 0.6);
}

.student-item.selected {
    background: var(--danger);
    color: #8b2635;
    box-shadow:
        3px 3px 8px rgba(255, 179, 186, 0.3),
        -3px -3px 8px rgba(255, 255, 255, 0.6);
}

.student-item.checked-in {
    opacity: 0.6;
    cursor: not-allowed;
    background: #e8e8e8;
}

.student-item.checked-in:hover {
    background: #e8e8e8;
    color: var(--text-dark);
    box-shadow:
        inset 2px 2px 4px rgba(200, 180, 220, 0.3),
        inset -2px -2px 4px rgba(255, 255, 255, 0.8);
}

.checked-in-badge {
    display: inline-block;
    background: var(--success);
    color: var(--text-dark);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-left: 8px;
    font-weight: 500;
}

.checked-in-badge i {
    margin-right: 4px;
}

.attendance-item {
    background: var(--accent-light);
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 8px;
    border: none;
    box-shadow:
        inset 2px 2px 4px rgba(200, 180, 220, 0.3),
        inset -2px -2px 4px rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.attendance-item-content {
    flex: 1;
}

.attendance-item .student-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.attendance-item .student-credits {
    font-size: 0.9rem;
    color: var(--text-soft);
}

.btn-remove-attendance {
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-remove-attendance:hover {
    background: var(--danger-dark);
    transform: scale(1.1);
}

.empty-attendance {
    color: var(--text-soft);
    font-style: italic;
    text-align: center;
    padding: 20px;
}

#attendance-list {
    overflow-y: auto;
    flex: 1;
    min-height: 200px;
}

/* Music Player */
.music-player {
    background: var(--card-bg);
    border-top: none;
    padding: 0;
    position: sticky;
    bottom: 0;
    z-index: 100;
    box-shadow:
        0 -4px 12px rgba(201, 185, 211, 0.4),
        0 4px 12px rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    height: 50px;
}

.music-player.collapsed {
    height: 50px;
}

.music-player .player-content {
    display: none;
}

.music-player.expanded .player-content {
    display: flex;
}

.player-toggle {
    background: var(--accent-gradient);
    color: white;
    border: none;
    width: 100%;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow:
        0 2px 8px rgba(190, 150, 255, 0.3),
        0 -2px 8px rgba(255, 255, 255, 0.6);
}

.player-toggle:hover {
    box-shadow:
        0 4px 12px rgba(190, 150, 255, 0.4),
        0 -4px 12px rgba(255, 255, 255, 0.8);
}

.player-toggle i {
    transition: transform 0.3s ease;
}

.music-player .player-toggle i {
    transform: rotate(180deg);
}

.music-player.expanded .player-toggle i {
    transform: rotate(0deg);
}

.player-content {
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.player-controls {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.player-btn {
    background: transparent;
    border: none;
    color: #666;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-btn:hover {
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 50%;
}

.track-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.track-name {
    color: var(--text-dark);
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.progress-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s ease;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-soft);
}

.playlist-controls {
    flex-shrink: 0;
}

#playlist-btn {
    background: var(--info);
    color: var(--text-dark);
    border-radius: 12px;
    padding: 8px 12px;
    width: auto;
    height: auto;
    font-size: 0.9rem;
    gap: 5px;
    box-shadow:
        2px 2px 6px rgba(199, 206, 234, 0.3),
        -2px -2px 6px rgba(255, 255, 255, 0.6);
}

.playlist-selector {
    background: #f9f5fb;
    border: none;
    border-radius: 12px;
    padding: 8px 12px;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    min-width: 150px;
    box-shadow:
        inset 2px 2px 4px rgba(200, 180, 220, 0.3),
        inset -2px -2px 4px rgba(255, 255, 255, 0.9);
}

.playlist-selector:focus {
    outline: none;
    box-shadow:
        inset 3px 3px 8px rgba(190, 150, 255, 0.4),
        inset -3px -3px 8px rgba(255, 255, 255, 0.8);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--card-bg);
    border-radius: 20px;
    border: none;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--accent-light);
}

.modal-header h3 {
    color: var(--text-dark);
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-soft);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--accent-light);
    color: var(--accent);
}

/* Playlist Management */
.playlist-management {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.playlist-list h4,
.add-playlist-section h4 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 600;
}

.playlists-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.playlist-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.playlist-info h5 {
    color: #333;
    margin: 0 0 5px 0;
}

.playlist-info p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

.playlist-actions {
    display: flex;
    gap: 8px;
}

.add-playlist-section {
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
}

.modal-actions {
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
    text-align: right;
}

.modal-body {
    padding: 20px;
}

/* Student Detail Modal Styles */
.student-detail {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.student-info-section,
.student-classes-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.student-info-section h4,
.student-classes-section h4 {
    color: var(--text-dark);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-light);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-item.full-width {
    grid-column: 1 / -1;
}

.info-item strong {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
}

.info-item span {
    color: var(--text-soft);
    font-size: 1rem;
}

.classes-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 10px;
}

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

.classes-table thead {
    position: sticky;
    top: 0;
    background: var(--accent-light);
    z-index: 10;
}

.classes-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 2px solid var(--accent);
}

.classes-table td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
    color: var(--text-dark);
}

.classes-table tbody tr:hover {
    background-color: var(--accent-light);
}

.no-classes {
    color: var(--text-soft);
    font-style: italic;
    padding: 20px;
    text-align: center;
}

@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .classes-list {
        max-height: 300px;
    }
    
    .classes-table {
        font-size: 0.9rem;
    }
    
    .classes-table th,
    .classes-table td {
        padding: 8px;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        padding: 20px;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 99;
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav-btn {
        width: 100%;
        justify-content: flex-start;
        padding: 15px 20px;
        border-radius: 8px;
        margin-bottom: 10px;
    }
    
    .header-content {
        padding: 15px 20px;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .header-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .schedule-controls {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .calendar-navigation {
        order: 2;
    }
    
    #add-class-btn {
        order: 1;
        width: 100%;
    }
    
    /* Single day calendar on mobile */
    .three-day-calendar {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .calendar-navigation {
        flex-direction: row;
        gap: 10px;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    
    #current-dates {
        min-width: auto;
        text-align: center;
        flex: 1;
        padding: 10px;
        background: #f8f9fa;
        border-radius: 8px;
        border: 1px solid #e0e0e0;
        margin: 0 10px;
    }
    
    #prev-days,
    #next-days {
        flex-shrink: 0;
        width: 44px;
        height: 44px;
    }
    
    /* Check-in content stacked on mobile */
    .checkin-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Dashboard cards stacked */
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Courses and locations grids */
    .courses-grid,
    .locations-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Students table responsive */
    .students-table {
        overflow-x: auto;
    }
    
    .students-table table {
        min-width: 600px;
    }
    
    /* Player content responsive */
    .player-content {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }
    
    .playlist-controls {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .playlist-selector {
        width: 100%;
    }
    
    /* Modal responsive */
    .modal {
        width: 95%;
        margin: 20px;
    }
    
    /* Form responsive */
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 10px 15px;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .player-content {
        padding: 10px 15px;
    }
    
    .player-controls {
        gap: 5px;
    }
    
    .player-btn {
        width: 35px;
        height: 35px;
    }
}

/* Class Details Modal */
.class-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.class-details h4 {
    color: var(--accent);
    margin-bottom: 10px;
    border-bottom: 1px solid var(--accent-light);
    padding-bottom: 5px;
    font-weight: 600;
}

.class-info p {
    margin-bottom: 8px;
    color: var(--text-soft);
}

.class-video video {
    border-radius: 8px;
    background: #1a1a1a;
}

.attendance-list {
    list-style: none;
    padding: 0;
}

.attendance-list li {
    background: #3a3a3a;
    padding: 8px 12px;
    margin-bottom: 5px;
    border-radius: 6px;
    color: #e0e0e0;
}

.class-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--accent-light);
}

/* Playlist Page */
.playlist-container {
    background: #2a2a2a;
    border-radius: 12px;
    border: 1px solid #3a3a3a;
    overflow: hidden;
}

.empty-playlist {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.empty-playlist i {
    font-size: 4rem;
    color: #ff4444;
    margin-bottom: 20px;
}

.empty-playlist h3 {
    color: #e0e0e0;
    margin-bottom: 10px;
}

.empty-playlist p {
    margin-bottom: 30px;
}

.playlist-table {
    overflow-x: auto;
}

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

.playlist-table th,
.playlist-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.playlist-table th {
    background: #3a3a3a;
    color: #e0e0e0;
    font-weight: 600;
}

.playlist-table td {
    color: #e0e0e0;
}

.play-track-btn {
    background: #ff4444;
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-track-btn:hover {
    background: #ff3333;
    transform: scale(1.05);
}

.track-name {
    font-weight: bold;
    color: #e0e0e0;
    margin-bottom: 4px;
}

.track-filename {
    font-size: 0.8rem;
    color: #888;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .schedule-content {
        grid-template-columns: 1fr;
    }
    
    .checkin-content {
        grid-template-columns: 1fr;
    }
    
    .checkin-main-layout {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .music-player {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
}
/* ==== Soft Neumorphic Dashboard Theme ==== */

/* Base */
body {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  background-color: #f6f0f7;
  color: #333;
  line-height: 1.6;
}

/* General Card Style */
.dashboard-card,
.course-card,
.location-card,
.recent-activity,
.courses-panel,
.students-table,
.checkin-content > div {
  background: #fff;
  border: none;
  border-radius: 20px;
  box-shadow:
    8px 8px 20px rgba(201, 185, 211, 0.4),
    -8px -8px 20px rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
}

.dashboard-card:hover,
.course-card:hover,
.location-card:hover {
  transform: translateY(-3px);
  box-shadow:
    6px 6px 16px rgba(201, 185, 211, 0.5),
    -6px -6px 16px rgba(255, 255, 255, 0.9);
}

/* Accent Colors */
:root {
  --accent: #8E1616;
  --accent-light: #EEEEEE;
  --accent-gradient: linear-gradient(135deg, #8E1616, #D84040);
  --text-soft: #1D1616;
  --card-bg: #ffffff;
}

/* Typography */
h1, h2, h3, h4 {
  color: #1D1616;
  font-weight: 600;
}

p {
  color: var(--text-soft);
}

/* Buttons */
.btn,
.nav-btn,
.btn-checkin {
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow:
    3px 3px 8px rgba(190, 150, 255, 0.3),
    -3px -3px 8px rgba(255, 255, 255, 0.6);
}

.btn:hover,
.nav-btn:hover,
.btn-checkin:hover {
  transform: translateY(-2px);
  box-shadow:
    5px 5px 12px rgba(190, 150, 255, 0.4),
    -5px -5px 12px rgba(255, 255, 255, 0.8);
}

/* Inputs and Forms */
input, select, textarea {
  background: #f9f5fb;
  border: none;
  border-radius: 12px;
  padding: 12px;
  color: #333;
  box-shadow:
    inset 4px 4px 6px rgba(200, 180, 220, 0.3),
    inset -4px -4px 6px rgba(255, 255, 255, 0.9);
  transition: box-shadow 0.3s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  box-shadow:
    inset 3px 3px 8px rgba(190, 150, 255, 0.4),
    inset -3px -3px 8px rgba(255, 255, 255, 0.8);
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

/* Calendar, Charts, and Widgets */
.calendar-panel,
.three-day-calendar,
.widget {
  background: var(--card-bg);
  border-radius: 20px;
  box-shadow:
    6px 6px 16px rgba(201, 185, 211, 0.4),
    -6px -6px 16px rgba(255, 255, 255, 0.9);
  padding: 25px;
}

/* Header */
.header {
  background: var(--card-bg);
  border: none;
  box-shadow:
    4px 4px 12px rgba(201, 185, 211, 0.4),
    -4px -4px 12px rgba(255, 255, 255, 0.9);
}

.logo {
  font-weight: 700;
  color: var(--accent);
}

/* Progress Rings / Circular Stats */
.progress-ring {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background:
    conic-gradient(var(--accent) calc(var(--percent) * 1%), #e6e0ef 0%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--accent);
  box-shadow:
    inset 4px 4px 10px rgba(190, 150, 255, 0.3),
    inset -4px -4px 10px rgba(255, 255, 255, 0.8);
}

/* Chat UI (light blur effect) */
.chat-window {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 20px;
  box-shadow:
    4px 4px 16px rgba(201, 185, 211, 0.4),
    -4px -4px 16px rgba(255, 255, 255, 0.8);
}

/* Upload File Widget */
.upload-widget {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  box-shadow:
    6px 6px 18px rgba(201, 185, 211, 0.4),
    -6px -6px 18px rgba(255, 255, 255, 0.9);
}

.upload-progress {
  height: 6px;
  border-radius: 4px;
  background: #eee;
  overflow: hidden;
}

.upload-progress span {
  display: block;
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 4px;
  width: var(--progress);
  transition: width 0.3s ease;
}
