/* Student Portal Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 260px;
    background: #1a1a2e;
    padding: 20px;
    z-index: 100;
    transition: all 0.3s ease;
}

.sidebar .logo {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.sidebar .logo img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-right: 10px;
}

.sidebar .logo h2 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.sidebar .nav-links {
    list-style: none;
}

.sidebar .nav-links li {
    margin: 5px 0;
}

.sidebar .nav-links li a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #a0a0a0;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sidebar .nav-links li a:hover,
.sidebar .nav-links li a.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.sidebar .nav-links li a i {
    margin-right: 12px;
    font-size: 18px;
    min-width: 25px;
}

.sidebar .user-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
}

.sidebar .user-info .user-detail {
    display: flex;
    align-items: center;
}

.sidebar .user-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.sidebar .user-info .name {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.sidebar .user-info .role {
    color: #a0a0a0;
    font-size: 12px;
}

/* Main Content */
.main-content {
    margin-left: 260px;
    padding: 20px;
    min-height: 100vh;
}

/* Top Bar */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

.topbar .page-title h1 {
    font-size: 24px;
    color: #1a1a2e;
    font-weight: 600;
}

.topbar .page-title p {
    font-size: 13px;
    color: #888;
}

.topbar .search-box {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    padding: 10px 15px;
    border-radius: 10px;
}

.topbar .search-box input {
    border: none;
    background: transparent;
    outline: none;
    padding: 0 10px;
    width: 200px;
}

.topbar .user-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.topbar .notification-btn,
.topbar .logout-btn {
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.topbar .notification-btn {
    background: #f5f5f5;
    color: #333;
}

.topbar .logout-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.topbar .logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Dashboard Cards */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.card {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.card .card-header h3 {
    font-size: 14px;
    color: #888;
    font-weight: 500;
}

.card .card-header .icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.card .card-header .icon.blue {
    background: rgba(102, 126, 234, 0.15);
    color: #667eea;
}

.card .card-header .icon.green {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.card .card-header .icon.orange {
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
}

.card .card-header .icon.red {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.card .card-header .icon.purple {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
}

.card .card-value {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 5px;
}

.card .card-label {
    font-size: 13px;
    color: #888;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.active {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.status-badge.inactive {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.status-badge.pending {
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
}

.status-badge.restricted {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* Content Sections */
.content-section {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

.content-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.content-section .section-header h2 {
    font-size: 18px;
    color: #1a1a2e;
    font-weight: 600;
}

.content-section .section-header .btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

.content-section .section-header .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.content-section .section-header .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #1a1a2e;
    font-size: 13px;
    text-transform: uppercase;
}

.data-table td {
    color: #555;
    font-size: 14px;
}

.data-table tr:hover {
    background: #f8f9fa;
}

/* Profile Section */
.profile-header {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    margin-bottom: 25px;
    color: #fff;
}

.profile-header .profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.3);
    object-fit: cover;
}

.profile-header .profile-info h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 5px;
}

.profile-header .profile-info p {
    opacity: 0.9;
    margin-bottom: 3px;
}

.profile-header .profile-info .uid-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    margin-top: 10px;
}

/* Profile Grid */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.profile-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.profile-item .icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.profile-item .details label {
    font-size: 12px;
    color: #888;
    display: block;
}

.profile-item .details span {
    font-size: 15px;
    color: #1a1a2e;
    font-weight: 500;
}

/* Pass Request Form */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #1a1a2e;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #667eea;
    outline: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.btn-submit {
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

/* Notifications */
.notification-item {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 10px;
    border-left: 4px solid #667eea;
}

.notification-item.unread {
    background: rgba(102, 126, 234, 0.08);
}

.notification-item .notif-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.notification-item .notif-content h4 {
    font-size: 14px;
    color: #1a1a2e;
    margin-bottom: 5px;
}

.notification-item .notif-content p {
    font-size: 13px;
    color: #888;
    margin-bottom: 5px;
}

.notification-item .notif-content .time {
    font-size: 11px;
    color: #aaa;
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.alert-warning {
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.alert-info {
    background: rgba(102, 126, 234, 0.15);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

/* Student Login Page */
.student-login-container {
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.student-login-box {
     background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5x);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 420px;
}

.student-login-box .login-header {
    text-align: center;
    margin-bottom: 30px;
}

.student-login-box .login-header img {
    width: 19rem;
    margin-bottom:15px;
}

.student-login-box .login-header h1 {
    font-size: 24px;
    color: #1a1a2e;
    margin-bottom: 5px;
}

.student-login-box .login-header p {
    color: #888;
    font-size: 14px;
}

.student-login-box .form-group {
    position: relative;
}

.student-login-box .form-group i {
    position: absolute;
    left: 15px;
    top: 71%;
    transform: translateY(-50%);
    color: #888;    
}

.student-login-box .form-group input {
    padding-left: 45px;
}

.student-login-box .btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.student-login-box .btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.student-login-box .login-footer {
    text-align: center;
    margin-top: 20px;
    color: #888;
    font-size: 13px;
}

.student-login-box .login-footer a {
    color: #667eea;
    text-decoration: none;
}

/* Timeline for attendance */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #eee;
}

.timeline-item {
    position: relative;
    padding-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #667eea;
    border: 2px solid #fff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.timeline-item .time {
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
}

.timeline-item .content {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
}

.timeline-item .content h4 {
    font-size: 14px;
    color: #1a1a2e;
    margin-bottom: 5px;
}

.timeline-item .content p {
    font-size: 13px;
    color: #666;
}

/* Responsive */
@media (max-width: 992px) {
    .sidebar {
        width: 80px;
    }
    
    .sidebar .logo h2,
    .sidebar .nav-links li a span,
    .sidebar .user-info .name,
    .sidebar .user-info .role {
        display: none;
    }
    
    .sidebar .nav-links li a {
        justify-content: center;
        padding: 15px;
    }
    
    .sidebar .nav-links li a i {
        margin-right: 0;
    }
    
    .main-content {
        margin-left: 80px;
    }
}

@media (max-width: 768px) {
    /* Keep sidebar present but off-screen so it can slide in when active */
    .sidebar {
        display: block;
        transform: translateX(-100%);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .topbar {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-decoration: none;
    color: #1a1a2e;
    transition: all 0.3s ease;
}

.quick-action-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.quick-action-btn i {
    font-size: 28px;
    margin-bottom: 10px;
    color: #667eea;
}

.quick-action-btn span {
    font-size: 13px;
    font-weight: 500;
}

/* Pass Card */
.pass-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 25px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.pass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.pass-card .pass-type {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
    margin-bottom: 10px;
}

.pass-card .pass-status {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.pass-card .pass-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.pass-card .pass-detail-item label {
    font-size: 11px;
    opacity: 0.7;
    display: block;
}

.pass-card .pass-detail-item span {
    font-size: 14px;
    font-weight: 500;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px;
    color: #888;
}

.empty-state i {
    font-size: 60px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #555;
}

.empty-state p {
    font-size: 14px;
}

/* Mobile Menu Toggle Button */
.menu-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 200;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    transform: scale(1.05);
}

.menu-toggle i {
    color: #fff;
    font-size: 20px;
}

/* Sidebar Close Button (Mobile) */
.sidebar-close {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.sidebar-close:hover {
    background: rgba(255,255,255,0.2);
}

.sidebar-close i {
    color: #fff;
    font-size: 18px;
}

/* Overlay for mobile menu */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 90;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
}

/* =====================================================
   RESPONSIVE STYLES - TABLET
   ===================================================== */
@media screen and (max-width: 1024px) {
    .sidebar {
        width: 220px;
    }
    
    .main-content {
        margin-left: 220px;
    }
    
    .dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .profile-grid {
        grid-template-columns: 1fr;
    }
    
    .topbar {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .topbar .page-title h1 {
        font-size: 20px;
    }
}

/* =====================================================
   RESPONSIVE STYLES - MOBILE
   ===================================================== */
@media screen and (max-width: 768px) {
    /* Show menu toggle */
    .menu-toggle {
        display: flex;
    }
     .stu-name, .name, .role{
        display: block;
    }
    
    .sidebar-close {
        display: flex;
    }
    
    .sidebar-overlay {
        display: block;
        pointer-events: none;
    }
    
    .sidebar-overlay.active {
        pointer-events: auto;
        opacity: 1;
        visibility: visible;
    }
    
    /* Hide sidebar by default on mobile - slide off screen */
    .sidebar {
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        height: 100% !important;
        width: 280px !important;
        background: #1a1a2e !important;
        transform: translateX(-100%);
        z-index: 1000 !important;
        box-shadow: none;
        padding: 20px;
        overflow-y: auto;
    }
    
    /* Show sidebar when active */
    .sidebar.active {
        transform: translateX(0) !important;
        box-shadow: 5px 0 25px rgba(0,0,0,0.3);
    }
    
    /* Ensure nav links are visible with icons and text */
    .sidebar .nav-links {
        display: block !important;
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .sidebar .nav-links li {
        display: block !important;
        margin: 5px 0;
    }
    
    .sidebar .nav-links li a {
        display: flex !important;
        align-items: center;
        justify-content: flex-start !important;
        padding: 12px 15px;
        color: #a0a0a0 !important;
        text-decoration: none;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .sidebar .nav-links li a:hover,
    .sidebar .nav-links li a.active {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        color: #fff !important;
    }
    
    .sidebar .nav-links li a i {
        margin-right: 12px !important;
        font-size: 18px;
        min-width: 25px;
        color: inherit;
        display: inline-block !important;
    }
    
    .sidebar .nav-links li a span {
        display: inline-block !important;
        color: inherit;
        font-size: 14px;
    }
    
    /* Logo in sidebar */
    .sidebar .logo {
        display: flex !important;
        align-items: center;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        margin-bottom: 20px;
        margin-top: 30px;
    }
    
    .sidebar .logo img {
        width: 45px;
        height: 45px;
    }
    
    .sidebar .logo h2 {
        color: #fff !important;
        font-size: 18px;
        display: block;
    }

   
    /* User info positioning for mobile */
    .sidebar .user-info {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        margin-top: 30px;
        padding: 15px;
        background: rgba(255,255,255,0.05);
        border-radius: 10px;
    }
    
    .sidebar .user-info .name {
        color: #fff !important;
    }
    
    .sidebar .user-info .role {
        color: #a0a0a0 !important;
    }
    
    /* Main content full width */
    .main-content {
        margin-left: 0;
        padding: 15px;
        padding-top: 70px;
    }
    
    /* Topbar adjustments */
    .topbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
        margin-left: 0;
    }
    
    .topbar .page-title {
        width: 100%;
    }
    
    .topbar .page-title h1 {
        font-size: 18px;
    }
    
    .topbar .page-title p {
        font-size: 12px;
    }
    
    .topbar .user-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .topbar .logout-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    /* Dashboard cards single column */
    .dashboard-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-card .stat-icon {
        width: 45px;
        height: 45px;
    }
    
    .stat-card .stat-icon i {
        font-size: 20px;
    }
    
    .stat-card h3 {
        font-size: 22px;
    }
    
    .stat-card p {
        font-size: 12px;
    }
    
    /* Content sections */
    .content-section {
        padding: 15px;
        border-radius: 12px;
        margin-bottom: 15px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .section-header h2 {
        font-size: 16px;
    }
    
    /* Tables responsive */
    .data-table {
        font-size: 12px;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px 8px;
    }
    
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Profile adjustments */
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-avatar {
        margin-bottom: 15px;
    }
    
    .profile-avatar img {
        width: 100px;
        height: 100px;
    }
    
    .profile-info h2 {
        font-size: 20px;
    }
    
    .profile-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    /* Form adjustments */
    .form-row {
        flex-direction: column;
    }
    
    .form-group {
        width: 100%;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 14px;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    /* Filter form adjustments */
    .filter-form {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-form .form-group {
        width: 100%;
    }
    
    /* Pass card adjustments */
    .pass-card {
        padding: 20px;
    }
    
    .pass-card .pass-status {
        font-size: 20px;
    }
    
    .pass-card .pass-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    /* Activity items */
    .activity-item {
        padding: 12px;
    }
    
    .activity-item .activity-icon {
        width: 35px;
        height: 35px;
    }
    
    .activity-item .activity-icon i {
        font-size: 14px;
    }
    
    .activity-item h4 {
        font-size: 13px;
    }
    
    .activity-item p {
        font-size: 11px;
    }
    
    /* Notification items */
    .notification-item {
        padding: 12px;
    }
    
    .notif-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
    
    .notif-content h4 {
        font-size: 14px;
    }
    
    .notif-content p {
        font-size: 12px;
    }
    
    /* Quick actions */
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .quick-action-btn {
        padding: 15px;
    }
    
    .quick-action-btn i {
        font-size: 22px;
    }
    
    .quick-action-btn span {
        font-size: 11px;
    }
    
    /* Guidelines */
    .guidelines {
        padding: 15px;
    }
    
    .guidelines li {
        font-size: 12px;
        padding: 6px 0;
    }
    
    /* Status badges */
    .status-badge {
        padding: 4px 8px;
        font-size: 10px;
    }
    
    /* User info in sidebar */
    .sidebar .user-info {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        margin-top: 20px;
    }
}

/* =====================================================
   RESPONSIVE STYLES - SMALL MOBILE
   ===================================================== */
@media screen and (max-width: 480px) {
    .main-content {
        padding: 10px;
        padding-top: 65px;
    }
    
    .topbar {
        padding: 12px;
        border-radius: 10px;
    }
    
    .topbar .page-title h1 {
        font-size: 16px;
    }
    
    .stat-card {
        padding: 12px;
    }
    
    .stat-card h3 {
        font-size: 20px;
    }
    
    .content-section {
        padding: 12px;
    }
    
    .section-header h2 {
        font-size: 14px;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px 6px;
        font-size: 11px;
    }
    
    .quick-actions {
        grid-template-columns: 1fr 1fr;
    }
    
    .btn {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .profile-avatar img {
        width: 80px;
        height: 80px;
    }
    
    .profile-info h2 {
        font-size: 18px;
    }
    
    .empty-state i {
        font-size: 45px;
    }
    
    .empty-state h3 {
        font-size: 16px;
    }
    
    .empty-state p {
        font-size: 12px;
    }
    
    /* Login page responsive */
    .student-login-container {
        padding: 15px;
        
    }
    
    .student-login-box {
        padding: 25px 20px;
    }
    
    .student-login-box .login-header img {
        width: 12rem;
    }
    
    .student-login-box .login-header h1 {
        font-size: 20px;
    }
    
    .student-login-box .login-header p {
        font-size: 13px;
    }
    
    .student-login-box .btn-login {
        padding: 12px;
        font-size: 14px;
    }
}

/* =====================================================
   LOGIN PAGE RESPONSIVE - TABLET
   ===================================================== */
@media screen and (max-width: 768px) {
    .student-login-container {
        padding: 20px;
    }
    
    .student-login-box {
        padding: 30px 25px;
    }
    
    .student-login-box .login-header img {
        width: 14rem;
    }
}

/* Room Booking Styles */
.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.room-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: all 0.3s ease;
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.room-card h3 {
    font-size: 18px;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.room-card p {
    font-size: 13px;
    color: #555;
    margin-bottom: 5px;
}

.room-card .availability {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-top: 10px;
}

.room-card .availability.available {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.room-card .availability.unavailable {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.room-card .book-now-btn {
    margin-top: 15px;
    padding: 8px 15px;
    font-size: 13px;
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fefefe;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

.modal-content h3 {
    margin-bottom: 20px;
    color: #1a1a2e;
    font-size: 22px;
}

.modal-content .form-group {
    margin-bottom: 15px;
}

.modal-content .form-group label {
    font-weight: 500;
    color: #333;
}

.modal-content p {
    margin-top: 20px;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
}

.modal-content p span#total-price {
    color: #22c55e;
}

.modal-content .btn-primary {
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    font-size: 16px;
}

/* My Bookings Styles */
.booking-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 15px;
}

.booking-card h3 {
    font-size: 18px;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.booking-card p {
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
}

.booking-card .booking-status {
    font-weight: 600;
    margin-top: 10px;
}

.booking-card .booking-status .status-pending {
    color: #f97316;
}

.booking-card .booking-status .status-confirmed {
    color: #22c55e;
}

.booking-card .booking-status .status-cancelled {
    color: #ef4444;
}

/* Filters for Room Booking */
.filters {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap; /* Allow filters to wrap on smaller screens */
    align-items: flex-end; /* Align labels and inputs nicely */
}

.filters .form-group {
    margin-bottom: 0; /* Override default form-group margin */
}

.room-card .availability.on-hold {
    background: rgba(249, 115, 22, 0.15); /* Orange background for on_hold */
    color: #f97316; /* Orange text for on_hold */
}

/* Room Block and Floor Sections */
.room-block-section {
    margin-bottom: 30px;
}

.room-block-section h3 {
    font-size: 20px;
    color: #1a1a2e;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.room-floor-section {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.room-floor-section h4 {
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
    font-weight: 500;
}