* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1e3a8a;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary: #8b5cf6;
    --accent: #eab308;
    --accent-dark: #ca8a04;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --gray-light: #e2e8f0;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--light);
    min-height: 100vh;
    color: var(--dark);
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--primary-light));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-dark), var(--primary-light));
}

/* ========== NAVIGATION BAR ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.25rem;
    transition: var(--transition);
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

.brand-icon {
    width: 28px;
    height: 28px;
    stroke-width: 2.5;
}

.brand-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 10px;
    transition: var(--transition);
    position: relative;
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    transition: width 0.3s;
}

.navbar-link:hover {
    background: rgba(30, 58, 138, 0.05);
    color: var(--primary);
}

.navbar-link:hover::after {
    width: 60%;
}

.admin-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    padding: 8px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.admin-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.admin-btn:hover::before {
    width: 300px;
    height: 300px;
}

.admin-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.35);
}

.admin-icon {
    width: 18px;
    height: 18px;
    z-index: 1;
}

.admin-btn span {
    z-index: 1;
    position: relative;
}

/* Navbar scroll effect */
.navbar.scrolled {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
}

/* ========== HERO SECTION ANIMATIONS ========== */
@keyframes fade-in-down {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes float-reverse {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(20px) rotate(-5deg);
    }
}

.animate-fade-in-down {
    animation: fade-in-down 1s ease-out;
}

.animate-fade-in-up {
    animation: fade-in-up 1s ease-out;
}

.animation-delay-200 {
    animation-delay: 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.animation-delay-300 {
    animation-delay: 0.3s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.animation-delay-400 {
    animation-delay: 0.4s;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* ========== HERO SECTION ========== */
.hero-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #312e81 100%);
    color: var(--white);
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.1;
}

.hero-pattern {
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(234, 179, 8, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(250, 204, 21, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(234, 179, 8, 0.05) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

/* Floating Shapes */
.floating-elements {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.1), rgba(250, 204, 21, 0.2));
    backdrop-filter: blur(10px);
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    right: 10%;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    bottom: 20%;
    left: 5%;
    animation: float-reverse 10s ease-in-out infinite;
    animation-delay: 1s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 30%;
    animation: float 12s ease-in-out infinite;
    animation-delay: 2s;
}

.shape-4 {
    width: 150px;
    height: 150px;
    top: 30%;
    left: 20%;
    animation: float-reverse 9s ease-in-out infinite;
    animation-delay: 0.5s;
}

.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30, 58, 138, 0.8) 0%, transparent 50%, rgba(30, 64, 175, 0.5) 100%);
}

.hero-container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 20px 60px;
}

.hero-content {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(234, 179, 8, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: 50px;
    padding: 8px 16px;
    margin-bottom: 20px;
}

.badge-pulse {
    position: relative;
    display: inline-flex;
    width: 12px;
    height: 12px;
}

.badge-pulse::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s ease-in-out infinite;
}

.badge-pulse::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--accent);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.badge-text {
    color: #fde047;
    font-weight: 500;
    font-size: 14px;
}

.hero-title {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.2;
}

.gradient-text {
    display: block;
    background: linear-gradient(to right, #ffffff, #fde047, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    display: block;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: #fde047;
    margin-top: 15px;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #e2e8f0;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

.feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
}

.feature-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
}

.pill-icon {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.admin-link-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(to right, var(--accent), var(--accent-dark));
    color: var(--primary);
    padding: 15px 35px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(234, 179, 8, 0.3);
    transition: var(--transition);
}

.admin-link-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(234, 179, 8, 0.4);
}

.link-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
}

.admin-link-hero:hover .link-icon {
    transform: translateX(5px);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

.scroll-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scroll-text {
    font-size: 14px;
    color: #cbd5e1;
    font-weight: 500;
}

.scroll-icon {
    width: 24px;
    height: 24px;
    color: var(--accent);
}

/* ========== MAIN SECTION ========== */
.main-section {
    padding: 120px 0 50px;
    background: var(--light);
}

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

/* ========== SEARCH SECTION ========== */
.search-section-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-lg);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(30, 58, 138, 0.1);
    border: 1px solid rgba(30, 58, 138, 0.2);
    border-radius: 50px;
    padding: 8px 20px;
    margin-bottom: 25px;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-icon {
    width: 20px;
    height: 20px;
}

.search-section {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.search-box {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.search-box input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.search-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(30, 58, 138, 0.3);
}

.search-icon {
    width: 20px;
    height: 20px;
}

.filter-chips {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--light);
    border: 2px solid var(--gray-light);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

.chip:hover {
    border-color: var(--primary);
    background: rgba(30, 58, 138, 0.05);
    transform: translateY(-2px);
}

.chip.active {
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.3);
}

.chip-icon {
    width: 18px;
    height: 18px;
}

/* ========== LOADING STATE ========== */
.loading {
    text-align: center;
    padding: 80px 20px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid var(--gray-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 25px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    color: var(--gray);
    font-size: 1.1rem;
    font-weight: 500;
}

/* ========== FLOORS CONTAINER ========== */
.floors-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Floor Card Animation */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.floor-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    animation: slideInUp 0.6s ease-out;
    transition: var(--transition);
}

.floor-card:hover {
    box-shadow: var(--shadow-2xl);
    transform: translateY(-5px);
}

.floor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 3px solid var(--gray-light);
}

.floor-name {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 15px;
}

.floor-stats {
    display: flex;
    gap: 20px;
}

.stat-badge {
    background: var(--light);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray);
    border: 2px solid var(--gray-light);
}

.stat-badge.available {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.3);
}

/* ========== ROOMS GRID ========== */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

@media (max-width: 400px) {
    .rooms-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Room Card Animation */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.room-card {
    background: var(--white);
    border-radius: 24px;
    padding: 0;
    border: 1px solid var(--gray-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    animation: fadeInScale 0.6s ease-out;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.room-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--accent));
    opacity: 0;
    transition: opacity 0.3s;
}

.room-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(30, 58, 138, 0.25);
    border-color: var(--primary-light);
}

.room-card:hover::before {
    opacity: 1;
}

.room-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    border-bottom: 1px solid var(--gray-light);
}

.room-number {
    font-size: 1.85rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.5px;
}

.room-type {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.beds-visual {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 16px;
    padding: 28px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
}

.beds-visual::before {
    content: 'Bed Layout';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
}

.bed-icon {
    font-size: 3rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 8px rgba(16, 185, 129, 0.3));
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.bed-icon::after {
    content: attr(title);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--success);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bed-icon.occupied {
    filter: grayscale(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    opacity: 0.35;
}

.bed-icon.occupied::after {
    color: var(--danger);
}

.bed-icon:not(.occupied):hover {
    transform: scale(1.2) rotate(-5deg);
    filter: drop-shadow(0 8px 16px rgba(16, 185, 129, 0.5));
}

.bed-icon.occupied:hover {
    transform: scale(1.1);
}

.room-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: var(--gray-light);
    padding: 0;
}

.info-item {
    background: var(--white);
    padding: 20px 16px;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.info-item:hover {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    transform: translateY(-3px);
}

.info-item:first-child {
    border-bottom-left-radius: 24px;
}

.info-item:last-child {
    border-bottom-right-radius: 24px;
}

.info-label {
    font-size: 0.75rem;
    color: var(--gray);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.info-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.info-value.available {
    color: var(--success);
    animation: pulse-success 2s ease-in-out infinite;
}

@keyframes pulse-success {
    0%, 100% {
        text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
    }
}

.info-value.full {
    color: var(--danger);
    animation: pulse-danger 2s ease-in-out infinite;
}

@keyframes pulse-danger {
    0%, 100% {
        text-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
    }
}

/* ========== EMPTY STATE ========== */
.empty-state {
    background: var(--white);
    border-radius: 20px;
    padding: 100px 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 25px;
    display: inline-block;
}

.empty-icon svg {
    width: 100px;
    height: 100px;
    color: var(--gray);
    stroke-width: 1.5;
}

.empty-state h2 {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.empty-state p {
    color: var(--gray);
    font-size: 1.1rem;
}

/* ========== FOOTER ========== */
.footer {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 40px 0;
    margin-top: 60px;
}

.footer-text {
    text-align: center;
    color: var(--white);
    font-weight: 500;
    font-size: 1rem;
}

/* ========== STAGGERED ANIMATIONS ========== */
.room-card:nth-child(1) { animation-delay: 0.1s; }
.room-card:nth-child(2) { animation-delay: 0.2s; }
.room-card:nth-child(3) { animation-delay: 0.3s; }
.room-card:nth-child(4) { animation-delay: 0.4s; }
.room-card:nth-child(5) { animation-delay: 0.5s; }
.room-card:nth-child(6) { animation-delay: 0.6s; }

/* ========== RESPONSIVE DESIGN ========== */

/* Extra Small Devices (Phones, 320px to 480px) */
@media (max-width: 480px) {
    .hero-section {
        min-height: 85vh;
    }
    
    .hero-container {
        padding: 70px 16px 30px;
        min-height: 85vh;
    }
    
    .hero-badge {
        padding: 6px 12px;
        margin-bottom: 15px;
    }
    
    .badge-text {
        font-size: 11px;
    }
    
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .subtitle {
        font-size: 1.2rem;
        margin-top: 8px;
    }
    
    .hero-description {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 20px;
        max-width: 90%;
    }
    
    .floating-shape {
        display: none;
    }
    
    .feature-pills {
        display: none;
    }

    .search-box {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .search-box input {
        padding: 12px 14px;
        font-size: 0.9rem;
    }
    
    .search-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 18px;
        font-size: 0.9rem;
    }
    
    .filter-chips {
        flex-direction: column;
        gap: 8px;
    }
    
    .chip {
        justify-content: center;
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .floor-card {
        padding: 24px 16px;
        border-radius: 16px;
    }
    
    .floor-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding-bottom: 20px;
    }
    
    .floor-name {
        font-size: 1.5rem;
        gap: 10px;
    }
    
    .floor-stats {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .stat-badge {
        text-align: center;
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .rooms-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .room-card {
        border-radius: 20px;
    }
    
    .room-header {
        padding: 20px;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .room-number {
        font-size: 1.65rem;
    }
    
    .room-type {
        font-size: 0.75rem;
        padding: 6px 14px;
    }
    
    .beds-visual {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
        padding: 24px 16px;
        gap: 12px;
    }
    
    .bed-icon {
        font-size: 2.5rem;
    }
    
    .bed-icon::after {
        font-size: 0.65rem;
    }
    
    .info-item {
        padding: 16px 12px;
    }
    
    .info-label {
        font-size: 0.7rem;
    }
    
    .info-value {
        font-size: 1.65rem;
    }
    
    .navbar-container {
        padding: 10px 16px;
    }
    
    .navbar-brand {
        font-size: 1.05rem;
        gap: 8px;
    }
    
    .brand-icon {
        width: 24px;
        height: 24px;
    }
    
    .brand-text {
        font-size: 1.05rem;
    }
    
    .navbar-actions {
        gap: 8px;
    }
    
    .navbar-link {
        display: none;
    }

    .navbar-link.home-link {
        display: inline-flex;
        align-items: center;
        padding: 8px 12px;
    }
    
    .admin-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
        gap: 5px;
    }
    
    .admin-icon {
        width: 16px;
        height: 16px;
    }
    
    .admin-btn span {
        display: none;
    }
    
    .admin-btn::after {
        content: 'Admin';
        z-index: 1;
        position: relative;
    }
    
    .main-section {
        padding: 110px 0 30px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .footer {
        padding: 30px 0;
        margin-top: 40px;
    }
    
    .footer-text {
        font-size: 0.85rem;
        padding: 0 20px;
    }
    
    .empty-state {
        padding: 60px 20px;
    }
    
    .empty-icon svg {
        width: 70px;
        height: 70px;
    }
    
    .empty-state h2 {
        font-size: 1.5rem;
    }
    
    .empty-state p {
        font-size: 0.95rem;
    }
    
    .loading {
        padding: 50px 16px;
    }
    
    .spinner {
        width: 45px;
        height: 45px;
        border-width: 4px;
    }
    
    .loading-text {
        font-size: 0.95rem;
    }
}

/* Small Devices (Tablets, 481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .hero-section {
        min-height: 90vh;
    }
    
    .hero-container {
        padding: 90px 20px 50px;
        min-height: 90vh;
    }
    
    .hero-badge {
        padding: 7px 14px;
        margin-bottom: 18px;
    }
    
    .badge-text {
        font-size: 12px;
    }
    
    .hero-title {
        font-size: 2.25rem;
        margin-bottom: 18px;
    }
    
    .subtitle {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .feature-pills {
        gap: 12px;
    }
    
    .feature-pill {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
    
    .search-section-card {
        padding: 28px 20px;
    }
    
    .section-badge {
        font-size: 0.75rem;
        padding: 7px 14px;
    }
    
    .search-box {
        flex-direction: row;
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .search-box input {
        flex: 1;
        padding: 13px 16px;
        font-size: 0.95rem;
    }
    
    .search-btn {
        flex-shrink: 0;
        padding: 13px 24px;
        font-size: 0.95rem;
    }
    
    .filter-chips {
        justify-content: center;
        gap: 12px;
    }
    
    .chip {
        padding: 11px 20px;
        font-size: 0.9rem;
    }
    
    .floor-header {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .floor-card {
        padding: 30px 20px;
    }
    
    .floor-name {
        font-size: 1.75rem;
    }
    
    .rooms-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .room-header {
        padding: 20px 22px;
    }
    
    .room-number {
        font-size: 1.7rem;
    }
    
    .room-type {
        font-size: 0.8rem;
        padding: 7px 16px;
    }
    
    .beds-visual {
        grid-template-columns: repeat(auto-fit, minmax(65px, 1fr));
        padding: 24px 18px;
    }
    
    .bed-icon {
        font-size: 2.8rem;
    }
    
    .navbar-brand {
        font-size: 1.15rem;
    }
    
    .brand-icon {
        width: 26px;
        height: 26px;
    }
    
    .navbar-link {
        font-size: 0.85rem;
        padding: 8px 14px;
    }
    
    .admin-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .main-section {
        padding: 110px 0 40px;
    }
    
    .footer {
        padding: 35px 0;
        margin-top: 50px;
    }
    
    .footer-text {
        font-size: 0.9rem;
    }
    
    .loading {
        padding: 60px 20px;
    }
    
    .spinner {
        width: 50px;
        height: 50px;
    }
    
    .loading-text {
        font-size: 1rem;
    }
}

/* Medium Devices (Tablets, 769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 90%;
    }
    
    .rooms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large Devices (Desktops, 1025px to 1440px) */
@media (min-width: 1025px) and (max-width: 1440px) {
    .container {
        max-width: 1200px;
    }
}

/* Extra Large Devices (Large Desktops, 1441px and up) */
@media (min-width: 1441px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
}

/* Landscape orientation optimizations */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-section {
        min-height: auto;
        padding: 80px 0 40px;
    }
    
    .hero-container {
        min-height: auto;
        padding: 60px 20px 40px;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    button, a, .chip, .nav-item {
        min-height: 44px;
    }
    
    .room-card:hover {
        transform: none;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }
    
    .room-card:active {
        transform: scale(0.98);
    }
    
    .chip:hover {
        transform: none;
    }
    
    .chip:active {
        transform: scale(0.95);
    }
    
    .navbar-brand:hover {
        transform: none;
    }
    
    .admin-btn:hover {
        transform: none;
        box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25);
    }
    
    .admin-btn:active {
        transform: scale(0.96);
    }
    
    .search-btn:hover {
        transform: none;
    }
    
    .search-btn:active {
        transform: scale(0.97);
    }
}

/* Extra Extra Small Devices (Very small phones, below 360px) */
@media (max-width: 360px) {
    .navbar-brand {
        font-size: 0.95rem;
        gap: 6px;
    }
    
    .brand-icon {
        width: 22px;
        height: 22px;
    }
    
    .admin-btn {
        padding: 7px 12px;
        font-size: 0.75rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 0.85rem;
    }
    
    .search-section-card {
        padding: 16px 12px;
    }
    
    .room-number {
        font-size: 1.5rem;
    }
    
    .room-type {
        font-size: 0.7rem;
        padding: 5px 12px;
    }
    
    .bed-icon {
        font-size: 2.2rem;
    }
    
    .info-value {
        font-size: 1.5rem;
    }
    
    .login-card {
        padding: 20px 12px;
    }
    
    .login-header h1 {
        font-size: 1.3rem;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========== ADMIN PANEL STYLES ========== */
.admin-body {
    background: linear-gradient(135deg, var(--light) 0%, #e0e7ff 100%);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--primary);
    transition: var(--transition);
}

.mobile-menu-toggle svg {
    width: 28px;
    height: 28px;
    stroke-width: 2;
}

.mobile-menu-toggle:hover {
    background: rgba(30, 58, 138, 0.1);
    border-radius: 8px;
}

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

/* Sidebar Overlay for mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Sidebar Header */
.sidebar-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid var(--gray-light);
    margin-bottom: 15px;
}

.sidebar-header h3 {
    font-size: 1.25rem;
    color: var(--dark);
    font-weight: 700;
}

.sidebar-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--gray);
    transition: var(--transition);
    border-radius: 8px;
}

.sidebar-close svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

.sidebar-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.login-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
    position: relative;
    overflow: hidden;
}

.login-screen::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.login-card {
    background: var(--white);
    border-radius: 16px;
    padding: 45px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 420px;
    width: 100%;
    animation: fadeInScale 0.6s ease-out;
    position: relative;
    z-index: 1;
}

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

.login-header h1 {
    font-size: 1.75rem;
    color: #1f2937;
    margin: 0;
    font-weight: 700;
    letter-spacing: 2px;
}

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

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    width: 20px;
    height: 20px;
    color: #9ca3af;
    pointer-events: none;
    z-index: 1;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    color: #1f2937;
    transition: all 0.3s ease;
}

.input-wrapper input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.input-wrapper input:focus {
    outline: none;
    background: #e5e7eb;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
    cursor: pointer;
}

.remember-me label {
    font-size: 0.875rem;
    color: #6b7280;
    cursor: pointer;
    user-select: none;
}

.btn-login {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: var(--white);
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 1px;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.4);
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    color: var(--white);
    padding: 15px;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.4);
}

.btn-secondary {
    background: var(--gray-light);
    color: var(--dark);
    padding: 15px;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

.btn-secondary:hover {
    background: var(--gray);
    color: var(--white);
    transform: translateY(-2px);
}

.error-message {
    color: var(--danger);
    font-size: 0.9rem;
    text-align: center;
    margin-top: 10px;
    padding: 10px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 8px;
}

.back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1), rgba(59, 130, 246, 0.1));
    border: 2px solid transparent;
    background-clip: padding-box;
    border-radius: 8px;
    color: #1e40af;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.back-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    padding: 2px;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.back-link:hover::before {
    opacity: 1;
}

.back-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

.back-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.admin-panel {
    min-height: 100vh;
}

.admin-header {
    background: linear-gradient(to right, var(--white), var(--light));
    box-shadow: var(--shadow-lg);
    padding: 20px 0;
    margin-bottom: 30px;
}

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

.admin-header h1 {
    font-size: 1.8rem;
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.admin-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-email {
    color: var(--gray);
    font-weight: 500;
}

.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

.sidebar {
    background: var(--white);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    height: fit-content;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: transparent;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray);
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

.nav-item:hover {
    background: var(--light);
    color: var(--primary);
    transform: translateX(5px);
}

.nav-item.active {
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    color: var(--white);
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.3);
}

.nav-icon {
    font-size: 1.5rem;
}

.admin-main {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.admin-section {
    display: none;
}

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

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--gray-light);
}

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

.admin-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.admin-item {
    background: linear-gradient(135deg, var(--light) 0%, #f1f5f9 100%);
    padding: 20px;
    border-radius: var(--radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.admin-item:hover {
    background: var(--white);
    border-color: var(--primary);
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

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

.item-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
}

.item-subtitle {
    color: var(--gray);
    font-size: 0.9rem;
}

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

.btn-icon {
    padding: 10px 15px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    background: var(--white);
    box-shadow: var(--shadow);
}

.btn-icon.edit:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.3);
}

.btn-icon.delete:hover {
    background: var(--danger);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 30px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-2xl);
}

.stat-icon {
    font-size: 3rem;
}

.stat-info h3 {
    font-size: 2.5rem;
    font-weight: 700;
}

.stat-info p {
    font-size: 1rem;
    opacity: 0.9;
}

/* ========== MODAL STYLES ========== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

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

.modal {
    background: var(--white);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-2xl);
    animation: modalSlide 0.3s ease-out;
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

.modal-header h3 {
    font-size: 1.5rem;
    color: var(--dark);
    font-weight: 700;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--gray);
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.modal-body {
    padding: 25px;
}

#modalForm {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#formFields {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

/* ========== ADMIN RESPONSIVE ========== */

/* Responsive Tables */
@media (max-width: 640px) {
    .admin-list {
        gap: 10px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px;
    }
    
    .search-box input {
        font-size: 16px;
    }
}

@media (max-width: 1024px) {
    .admin-container {
        grid-template-columns: 1fr;
        position: relative;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .sidebar-header {
        display: flex;
    }
    
    .sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        bottom: 0;
        width: 280px;
        margin-bottom: 0;
        z-index: 999;
        overflow-y: auto;
        transition: left 0.3s ease;
        max-height: 100vh;
    }
    
    .sidebar.active {
        left: 0;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    .sidebar-nav {
        flex-direction: column;
        overflow-x: visible;
        padding-bottom: 0;
    }
    
    .nav-item {
        width: 100%;
        justify-content: flex-start;
    }
    
    .nav-item:hover {
        transform: translateX(5px);
    }
    
    .admin-main {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .login-card {
        padding: 35px 25px;
        max-width: 95%;
    }
    
    .login-header h1 {
        font-size: 1.5rem;
        letter-spacing: 1.5px;
    }
    
    .input-wrapper input {
        padding: 12px 12px 12px 40px;
        font-size: 0.9rem;
    }
    
    .input-icon {
        width: 18px;
        height: 18px;
        left: 12px;
    }
    
    .btn-login {
        padding: 13px;
        font-size: 0.95rem;
    }
    
    .back-link {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .back-icon {
        width: 18px;
        height: 18px;
    }
    
    .admin-header-content {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .admin-header-left {
        flex: 1;
    }
    
    .admin-header h1 {
        font-size: 1.25rem;
        white-space: nowrap;
    }
    
    .admin-actions {
        flex-direction: row;
        gap: 10px;
        width: auto;
    }
    
    .admin-email {
        display: none;
    }
    
    .btn-secondary {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
    
    .admin-main {
        padding: 20px 15px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .section-header h2 {
        font-size: 1.4rem;
    }
    
    .btn-primary {
        width: 100%;
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stat-card {
        padding: 18px;
    }
    
    .stat-icon {
        font-size: 2.2rem;
    }
    
    .stat-info h3 {
        font-size: 1.85rem;
    }
    
    .stat-info p {
        font-size: 0.9rem;
    }
    
    .admin-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
    }
    
    .item-title {
        font-size: 1.1rem;
    }
    
    .item-subtitle {
        font-size: 0.85rem;
    }
    
    .item-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .modal {
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-header {
        padding: 18px;
    }
    
    .modal-header h3 {
        font-size: 1.2rem;
    }
    
    .modal-body {
        padding: 18px;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .modal-actions button {
        width: 100%;
        padding: 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .admin-header {
        padding: 12px 0;
    }
    
    .admin-header h1 {
        font-size: 1.05rem;
    }
    
    .mobile-menu-toggle svg {
        width: 22px;
        height: 22px;
    }
    
    .admin-container {
        padding: 0 12px;
    }
    
    .admin-main {
        padding: 18px 12px;
        border-radius: 15px;
    }
    
    .section-header {
        gap: 10px;
        padding-bottom: 15px;
    }
    
    .section-header h2 {
        font-size: 1.2rem;
    }
    
    .btn-primary {
        padding: 10px;
        font-size: 0.85rem;
    }
    
    .stats-grid {
        gap: 10px;
    }
    
    .stat-card {
        padding: 14px;
        gap: 12px;
    }
    
    .stat-icon {
        font-size: 1.8rem;
    }
    
    .stat-info h3 {
        font-size: 1.6rem;
    }
    
    .stat-info p {
        font-size: 0.85rem;
    }
    
    .admin-item {
        padding: 14px;
        gap: 10px;
    }
    
    .item-title {
        font-size: 1rem;
    }
    
    .item-subtitle {
        font-size: 0.8rem;
    }
    
    .btn-icon {
        padding: 8px 10px;
        font-size: 0.95rem;
    }
    
    .floor-card {
        padding: 18px 14px;
    }
    
    .floor-name {
        font-size: 1.4rem;
    }
    
    .sidebar {
        width: 240px;
        left: -240px;
    }
    
    .login-card {
        padding: 30px 20px;
        border-radius: 12px;
    }
    
    .login-header {
        margin-bottom: 25px;
    }
    
    .login-header h1 {
        font-size: 1.4rem;
        letter-spacing: 1px;
    }
    
    .input-wrapper input {
        padding: 12px 10px 12px 38px;
    }
    
    .remember-me {
        margin-top: 2px;
    }
    
    .remember-me label {
        font-size: 0.8rem;
    }
    
    .login-header h1 {
        font-size: 1.4rem;
    }
    
    .login-header p {
        font-size: 0.85rem;
    }
    
    .form-group label {
        font-size: 0.85rem;
    }
    
    .form-group input {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .btn-primary {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .btn-secondary {
        padding: 9px 16px;
        font-size: 0.8rem;
    }
    
    .modal {
        width: 96%;
        border-radius: 16px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .modal-actions button {
        padding: 10px;
        font-size: 0.85rem;
    }
}
