:root {
    --primary: #3b82f6;
    --primary-light: #eff6ff;
    --secondary: #1e293b;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: rgba(226, 232, 240, 0.8);
    --sidebar-width: 260px;
    --accent-orange: #f97316;
    --accent-teal: #14b8a6;
    --accent-red: #ef4444;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --premium-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: #ffffff;
    border-right: 1px solid var(--border-color);
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 1rem;
    margin-bottom: 2.5rem;
    position: relative;
}

.sidebar-close-btn {
    display: none;
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-light);
    border: none;
    color: var(--primary);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.sidebar-close-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.05);
}

.sidebar-close-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.logo-box {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    flex: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-muted);
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
    margin-bottom: 4px;
}

.nav-link:hover,
.nav-link.active {
    background: var(--primary-light);
    color: var(--primary);
}

.nav-link.active {
    font-weight: 700;
}

/* Content Area */
.content-area {
    margin-left: var(--sidebar-width);
    padding: 2rem 3rem;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.location-picker {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 10px 18px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    font-weight: 600;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* Dashboard Cards */
.stat-card,
.chart-card,
.glass {
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

/* Charts */
.bar-chart-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 220px;
    gap: 10px;
}

.bar-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bar-fill {
    width: 25px;
    background: #e0f2fe;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bar-fill.active {
    background: var(--primary);
}

.bar-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 12px;
    font-weight: 600;
}

/* Lists & Tables */
.modern-list {
    list-style: none;
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
}

.list-item:last-child {
    border-bottom: none;
}

.table-glass {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.table-glass th {
    text-align: left;
    padding: 0 1rem 1rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.table-glass td {
    background: white;
    padding: 1.25rem 1rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.table-glass td:first-child {
    border-left: 1px solid var(--border-color);
    border-radius: 12px 0 0 12px;
}

.table-glass td:last-child {
    border-right: 1px solid var(--border-color);
    border-radius: 0 12px 12px 0;
}

/* UI Components */
.btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    transition: 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3);
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    font-size: 0.95rem;
    color: var(--text-main);
    transition: 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.modern-badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
}

.trend-up {
    color: #10b981;
}

.trend-down {
    color: #ef4444;
}

/* Premium Frontend Components */
.frontend-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

.bg-premium-gradient {
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.05), transparent),
        radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.05), transparent);
    background-attachment: fixed;
}

.hover-lift {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--premium-shadow);
}

.theater-card-premium {
    background: white;
    border-radius: 32px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.theater-img-container {
    height: 240px;
    position: relative;
    overflow: hidden;
}

.theater-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.theater-card-premium:hover .theater-img-container img {
    transform: scale(1.1);
}

.action-btn {
    padding: 12px 28px;
    border-radius: 14px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 20px;
    border: 2px solid #f1f5f9;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

.sidebar-close-btn {
    display: none !important;
    transition: all 0.2s;
}

.sidebar-close-btn:hover {
    background: var(--primary) !important;
    color: white !important;
    transform: scale(1.05);
}

.sidebar-close-btn:active {
    transform: scale(0.95);
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    transition: opacity 0.3s;
}

/* Large Tablet/Small Desktop (max-width: 1200px) */
@media screen and (max-width: 1200px) {
    :root {
        --sidebar-width: 240px;
    }

    .content-area {
        padding: 1.5rem 2rem;
    }

    /* Adjust theater grid */
    div[style*="grid-template-columns: repeat(auto-fill, minmax(360px, 1fr))"] {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    }
}

/* Tablet Styles (768px - 1024px) */
@media screen and (max-width: 1024px) {
    :root {
        --sidebar-width: 220px;
    }

    .content-area {
        padding: 1.5rem 1.5rem;
    }

    .top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .stat-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .main-grid {
        grid-template-columns: 1fr !important;
    }

    /* Frontend adjustments */
    nav.frontend-glass {
        margin: 0 30px !important;
        padding: 10px 20px !important;
    }

    header[style*="padding: 100px"] {
        padding: 80px 30px 50px !important;
    }

    div[style*="padding: 0 50px 100px"] {
        padding: 0 30px 80px !important;
    }

    div[style*="background: var(--text-main)"] {
        margin: 0 30px !important;
    }

    footer {
        padding: 50px 30px !important;
    }
}

/* Mobile Styles (max-width: 768px) */
@media screen and (max-width: 768px) {
    body {
        padding-top: 0;
        overflow-x: hidden;
    }

    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: block;
    }

    .sidebar-close-btn {
        display: flex !important;
    }

    .logo-section {
        padding-right: 3rem;
    }

    /* Sidebar mobile behavior */
    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        width: 280px;
        height: 100vh;
        transition: left 0.3s ease;
        z-index: 100;
        box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }

    .sidebar.active {
        left: 0;
    }

    .mobile-overlay.active {
        display: block;
    }

    /* Content area mobile */
    .content-area {
        margin-left: 0;
        padding: 4rem 1rem 1rem;
        width: 100%;
    }

    /* Top bar mobile */
    .top-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .location-picker {
        width: 100%;
        justify-content: center;
        font-size: 0.85rem;
        padding: 8px 14px;
    }

    .user-profile {
        justify-content: center;
        flex-direction: column;
        text-align: center;
    }

    .user-profile > div {
        margin-right: 0 !important;
    }

    /* Dashboard header mobile */
    .dashboard-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem !important;
    }

    .dashboard-header h1 {
        font-size: 1.5rem !important;
    }

    .dashboard-header > div:last-child {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Time range selector */
    div[style*="background: white; padding: 5px; border-radius: 10px"] {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Stat cards - single column on mobile */
    .stat-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .stat-card {
        padding: 1.25rem !important;
    }

    .stat-value {
        font-size: 1.8rem !important;
    }

    .stat-label {
        font-size: 0.7rem !important;
    }

    /* Main grid - single column */
    .main-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    /* Charts mobile */
    .bar-chart-container {
        height: 180px;
        gap: 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .bar-fill {
        width: 18px;
        min-width: 18px;
    }

    .bar-label {
        font-size: 0.65rem;
        white-space: nowrap;
    }

    .chart-card {
        padding: 1.25rem !important;
    }

    .chart-title {
        font-size: 1rem !important;
    }

    /* Tables mobile - responsive scroll */
    .table-glass {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .table-glass th,
    .table-glass td {
        padding: 0.875rem 0.75rem;
        font-size: 0.85rem;
    }

    .table-glass th {
        font-size: 0.7rem;
    }

    /* Buttons mobile */
    .btn {
        padding: 10px 18px;
        font-size: 0.85rem;
        gap: 8px;
    }

    .btn:not([style*="width: 100%"]) {
        width: 100%;
        justify-content: center;
    }

    /* Form controls mobile */
    .form-control {
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    label {
        font-size: 0.7rem !important;
    }

    /* Frontend Navigation Mobile */
    nav.frontend-glass {
        position: sticky !important;
        margin: 0 1rem !important;
        padding: 10px 16px !important;
        top: 10px !important;
        flex-wrap: wrap;
        gap: 0.5rem !important;
    }

    nav.frontend-glass > div {
        flex: 1 1 100%;
        justify-content: center !important;
    }

    nav.frontend-glass > div:first-child span {
        font-size: 1.25rem !important;
    }

    nav.frontend-glass > div:last-child {
        gap: 15px !important;
        flex-wrap: wrap;
    }

    /* Hero Section Mobile */
    header[style*="padding: 100px"] {
        padding: 60px 1rem 40px !important;
    }

    header div[style*="display: inline-block"] {
        font-size: 0.65rem !important;
        padding: 6px 12px !important;
    }

    header h1 {
        font-size: 2rem !important;
        letter-spacing: -1px !important;
        margin-bottom: 20px !important;
        line-height: 1.2 !important;
    }

    header h1 br {
        display: none;
    }

    header p {
        font-size: 1rem !important;
        padding: 0 1rem;
    }

    /* Theater Grid Section Mobile */
    div[style*="padding: 0 50px 100px"] {
        padding: 0 1rem 60px !important;
    }

    div[style*="display: flex; justify-content: space-between; align-items: flex-end"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem !important;
    }

    div[style*="display: flex; justify-content: space-between; align-items: flex-end"] h2 {
        font-size: 1.5rem !important;
    }

    div[style*="display: flex; gap: 10px"] {
        width: 100%;
    }

    /* Theater Grid Mobile */
    div[style*="grid-template-columns: repeat(auto-fill, minmax(360px, 1fr))"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .theater-card-premium {
        border-radius: 24px;
    }

    .theater-img-container {
        height: 200px;
    }

    .theater-card-premium > div:last-child {
        padding: 20px !important;
    }

    .theater-card-premium h3 {
        font-size: 1.3rem !important;
    }

    .theater-card-premium p {
        font-size: 0.85rem !important;
    }

    .theater-card-premium button {
        font-size: 0.9rem !important;
        padding: 14px !important;
    }

    /* Features Section Mobile */
    div[style*="background: var(--text-main)"] {
        margin: 0 1rem 60px !important;
        padding: 50px 20px !important;
        border-radius: 30px !important;
    }

    div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    div[style*="grid-template-columns: repeat(3, 1fr)"] h4 {
        font-size: 1.1rem !important;
    }

    div[style*="grid-template-columns: repeat(3, 1fr)"] p {
        font-size: 0.85rem !important;
    }

    /* Footer Mobile */
    footer {
        flex-direction: column !important;
        padding: 40px 1rem !important;
        gap: 1.5rem !important;
        text-align: center;
        align-items: center !important;
    }

    footer > div:last-child {
        flex-direction: column;
        gap: 15px !important;
    }

    /* Seat Selection Mobile */
    div[style*="padding: 20px 50px 100px"] {
        padding: 15px 1rem 60px !important;
    }

    div[style*="display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px"] {
        flex-direction: column !important;
        gap: 1rem !important;
        margin-bottom: 20px !important;
    }

    div[style*="display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px"] h1 {
        font-size: 1.3rem !important;
    }

    .seat-grid {
        transform: scale(0.9);
        transform-origin: top center;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Theater Details Mobile */
    div[style*="padding: 60px 50px 100px"] {
        padding: 40px 1rem 60px !important;
    }

    div[style*="max-width: 1000px"] {
        max-width: 100% !important;
    }

    /* Modal Mobile */
    div[style*="position: fixed"][style*="backdrop-filter"] {
        padding: 1rem !important;
        align-items: flex-start !important;
        overflow-y: auto !important;
    }

    div[style*="position: fixed"][style*="backdrop-filter"] > div {
        width: 100% !important;
        max-width: 100% !important;
        max-height: none !important;
        margin: 0 !important;
        border-radius: 20px !important;
    }

    div[style*="position: fixed"][style*="backdrop-filter"] form {
        padding: 30px 20px !important;
    }

    /* Admin tables mobile */
    .admin-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 16px !important;
    }

    /* Login page mobile */
    div[style*="padding: 20px"] {
        padding: 1rem !important;
    }

    div[style*="max-width: 480px"] {
        max-width: 100% !important;
    }

    div[style*="padding: 45px"][style*="background: white"] {
        padding: 30px 20px !important;
        border-radius: 24px !important;
    }

    /* Settings page */
    div[style*="max-width: 600px"] {
        max-width: 100% !important;
    }

    div[style*="padding: 40px"][style*="border-radius: 24px"] {
        padding: 25px 20px !important;
        border-radius: 20px !important;
    }

    /* Hide desktop-only elements on mobile */
    .desktop-only {
        display: none !important;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .nav-link {
        padding: 10px 14px;
        font-size: 0.9rem;
    }

    /* Improve touch targets */
    a, button, input, select {
        min-height: 44px;
    }
}

/* Small Mobile Styles (max-width: 480px) */
@media screen and (max-width: 480px) {
    .sidebar {
        width: 85vw;
        max-width: 280px;
    }

    .content-area {
        padding: 4rem 0.75rem 0.75rem;
    }

    .mobile-menu-toggle {
        top: 0.75rem;
        left: 0.75rem;
        padding: 10px 14px;
    }

    .stat-value {
        font-size: 1.5rem !important;
    }

    .stat-label {
        font-size: 0.65rem !important;
    }

    header h1 {
        font-size: 1.75rem !important;
        margin-bottom: 15px !important;
    }

    header p {
        font-size: 0.9rem !important;
    }

    .theater-card-premium > div:last-child {
        padding: 16px !important;
    }

    .theater-card-premium h3 {
        font-size: 1.15rem !important;
    }

    .theater-card-premium button {
        padding: 12px !important;
        font-size: 0.85rem !important;
    }

    .btn {
        padding: 10px 14px;
        font-size: 0.8rem;
    }

    div[style*="background: var(--text-main)"] {
        padding: 40px 16px !important;
        border-radius: 24px !important;
    }

    div[style*="grid-template-columns: repeat(3, 1fr)"] {
        gap: 25px !important;
    }

    /* Smaller text on mobile */
    h1 {
        font-size: 1.5rem !important;
    }

    h2 {
        font-size: 1.25rem !important;
    }

    h3 {
        font-size: 1.1rem !important;
    }

    h4 {
        font-size: 1rem !important;
    }

    /* Adjust seat sizes */
    .seat {
        width: 22px !important;
        height: 22px !important;
        font-size: 7px !important;
    }

    /* Adjust padding in cards */
    .glass, .stat-card, .chart-card {
        padding: 1rem !important;
    }

    /* Form elements */
    .form-control {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    input, select, textarea {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }

    /* Improve button spacing */
    div[style*="display: flex; gap:"] {
        gap: 8px !important;
        flex-wrap: wrap;
    }
}

/* Extra Small Mobile (max-width: 375px) */
@media screen and (max-width: 375px) {
    .content-area {
        padding: 4rem 0.5rem 0.5rem;
    }

    nav.frontend-glass {
        margin: 0 0.5rem !important;
        padding: 8px 12px !important;
    }

    div[style*="padding: 0 50px 100px"],
    div[style*="padding: 0 1rem 60px"] {
        padding: 0 0.5rem 40px !important;
    }

    header[style*="padding: 60px 1rem 40px"] {
        padding: 40px 0.5rem 30px !important;
    }

    header h1 {
        font-size: 1.5rem !important;
    }

    .theater-card-premium h3 {
        font-size: 1rem !important;
    }

    .stat-value {
        font-size: 1.3rem !important;
    }

    .btn {
        padding: 10px 12px;
        font-size: 0.75rem;
    }
}

/* Landscape Mobile (max-height: 500px) */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .sidebar {
        padding: 1rem 0.5rem;
    }

    .logo-section {
        margin-bottom: 1.5rem;
    }

    .nav-link {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

/* Print Styles */
@media print {
    .sidebar,
    .mobile-menu-toggle,
    .top-bar,
    nav.frontend-glass {
        display: none !important;
    }

    .content-area {
        margin-left: 0 !important;
        padding: 0 !important;
    }

    body {
        background: white;
    }
}

/* Utility Classes for Responsive Design */
.container-responsive {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media screen and (min-width: 768px) {
    .container-responsive {
        padding: 0 2rem;
    }
}

@media screen and (min-width: 1024px) {
    .container-responsive {
        padding: 0 3rem;
    }
}

/* Flexbox Utilities */
.flex-wrap-mobile {
    display: flex;
}

@media screen and (max-width: 768px) {
    .flex-wrap-mobile {
        flex-wrap: wrap;
    }
}

.flex-column-mobile {
    display: flex;
}

@media screen and (max-width: 768px) {
    .flex-column-mobile {
        flex-direction: column;
    }
}

/* Hide/Show Utilities */
@media screen and (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

@media screen and (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* Text Utilities */
@media screen and (max-width: 768px) {
    .text-center-mobile {
        text-align: center !important;
    }
}

/* Spacing Utilities */
@media screen and (max-width: 768px) {
    .p-mobile-sm {
        padding: 1rem !important;
    }

    .m-mobile-sm {
        margin: 1rem !important;
    }

    .gap-mobile-sm {
        gap: 0.5rem !important;
    }
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Better focus states for accessibility */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Prevent horizontal scroll */
body, html {
    overflow-x: hidden;
    max-width: 100%;
}

/* Better mobile tap highlight */
a, button {
    -webkit-tap-highlight-color: rgba(59, 130, 246, 0.2);
}

/* Smooth transitions */
* {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

button, a, input, select {
    transition: all 0.2s ease;
}