/* ============================================================================
   YATRA MANAGEMENT SYSTEM - ADMIN DASHBOARD
   Hindu-Inspired Design with Sacred Geometry & Spiritual Aesthetics
   ============================================================================ */

:root {
    /* Sacred Colors from Hindu Tradition */
    --color-saffron: #FF9933;      /* Saffron - Courage & Sacrifice */
    --color-green: #138808;         /* Green - Prosperity & Life */
    --color-blue: #4169E1;          /* Blue - Krishna's Divine Color */
    --color-gold: #FFD700;          /* Gold - Spiritual Wealth */
    --color-maroon: #8B0000;        /* Maroon - Sacred */
    
    /* UI Colors */
    --primary-color: #FF9933;       /* Saffron Primary */
    --secondary-color: #4169E1;     /* Blue Secondary */
    --accent-color: #FFD700;        /* Gold Accent */
    --success-color: #28a745;
    --warning-color: #ff9800;
    --danger-color: #dc3545;
    
    /* Neutrals */
    --bg-light: #fafaf7;            /* Warm off-white */
    --bg-dark: #2c2c2c;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --border-color: #e8ddd4;        /* Warm beige border */
    
    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
}

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

html, body {
    width: 100%;
    height: 100%;
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* ============================================================================
   SACRED BACKGROUND ELEMENTS
   ============================================================================ */

.sacred-geometry-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
}

.mandala-pattern {
    position: absolute;
    width: 600px;
    height: 600px;
    top: -200px;
    right: -200px;
    background: radial-gradient(circle, rgba(255, 153, 51, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    box-shadow: inset 0 0 100px rgba(255, 153, 51, 0.03);
}

.lotus-accent {
    position: absolute;
    font-size: 200px;
    opacity: 0.03;
}

.lotus-accent.top-left {
    top: 50px;
    left: 50px;
}

.lotus-accent.bottom-right {
    bottom: 50px;
    right: 50px;
    transform: rotate(180deg);
}

/* ============================================================================
   HEADER & NAVIGATION
   ============================================================================ */

.header {
    background: linear-gradient(135deg, var(--color-saffron) 0%, var(--color-maroon) 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 4px 15px rgba(255, 153, 51, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid var(--color-gold);
}

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

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.om-symbol {
    font-size: 48px;
    font-weight: bold;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), 0 0 10px rgba(255, 215, 0, 0.3); }
    50% { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 215, 0, 0.5); }
}

.logo-text h1 {
    font-family: var(--font-display);
    font-size: 28px;
    margin: 0;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-text p {
    font-size: 12px;
    opacity: 0.9;
    margin: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.header-nav ul {
    list-style: none;
    display: flex;
    gap: 5px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    position: relative;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-link.active {
    background-color: rgba(255, 215, 0, 0.3);
    border-bottom: 2px solid var(--color-gold);
}

.user-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    text-align: right;
    font-size: 14px;
}

.user-name {
    display: block;
    font-weight: 600;
}

.user-role {
    display: block;
    font-size: 11px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ============================================================================
   MAIN CONTENT
   ============================================================================ */

.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 30px;
}

.content-section {
    display: none;
    animation: fadeIn 0.4s ease-in;
}

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

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

/* ============================================================================
   YATRA BANNER
   ============================================================================ */

.yatra-banner {
    background: linear-gradient(135deg, var(--color-maroon) 0%, var(--color-saffron) 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(255, 153, 51, 0.2);
    border: 2px solid var(--color-gold);
}

.yatra-banner::before {
    content: '🛕';
    position: absolute;
    font-size: 150px;
    opacity: 0.1;
    top: -30px;
    right: 20px;
    transform: rotate(-15deg);
}

.banner-decoration-left,
.banner-decoration-right {
    position: absolute;
    width: 150px;
    height: 150px;
    opacity: 0.1;
}

.banner-decoration-left {
    left: -30px;
    top: -30px;
    border: 3px solid white;
    border-radius: 50%;
}

.banner-decoration-right {
    right: -30px;
    bottom: -30px;
    border: 3px solid white;
    border-radius: 50%;
}

.banner-content {
    position: relative;
    z-index: 2;
}

.yatra-badge {
    display: inline-block;
    background: rgba(255, 215, 0, 0.3);
    color: var(--color-gold);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    border: 1px solid var(--color-gold);
}

.yatra-name {
    font-family: var(--font-display);
    font-size: 42px;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.yatra-dates {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 500;
}

.date-separator {
    opacity: 0.7;
}

.yatra-description {
    font-size: 16px;
    opacity: 0.95;
    font-style: italic;
}

/* ============================================================================
   DASHBOARD STATS
   ============================================================================ */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    gap: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--color-saffron);
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
}

.stat-icon.bookings {
    background: linear-gradient(135deg, var(--color-saffron) 0%, var(--color-gold) 100%);
    color: white;
}

.stat-icon.yatris {
    background: linear-gradient(135deg, var(--color-blue) 0%, #5e7ce2 100%);
    color: white;
}

.stat-icon.revenue {
    background: linear-gradient(135deg, var(--color-green) 0%, #1eaa55 100%);
    color: white;
}

.stat-icon.occupancy {
    background: linear-gradient(135deg, var(--color-maroon) 0%, #a50000 100%);
    color: white;
}

.stat-content {
    flex: 1;
}

.stat-title {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-family: var(--font-display);
}

.stat-meta {
    font-size: 12px;
    color: var(--text-light);
}

/* ============================================================================
   QUICK ACTIONS
   ============================================================================ */

.quick-actions {
    margin-bottom: 40px;
}

.quick-actions h3 {
    font-family: var(--font-display);
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.action-btn {
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.primary-btn {
    background: linear-gradient(135deg, var(--color-saffron) 0%, var(--color-maroon) 100%);
    color: white;
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(255, 153, 51, 0.3);
}

.secondary-btn {
    background: white;
    color: var(--color-saffron);
    border: 2px solid var(--color-saffron);
}

.secondary-btn:hover {
    background: var(--color-saffron);
    color: white;
}

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

.tertiary-btn:hover {
    opacity: 0.9;
    transform: translateY(-3px);
}

/* ============================================================================
   RECENT BOOKINGS TABLE
   ============================================================================ */

.recent-bookings {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.recent-bookings h3 {
    font-family: var(--font-display);
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

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

.bookings-table thead {
    background: linear-gradient(135deg, var(--color-saffron) 0%, var(--color-maroon) 100%);
    color: white;
}

.bookings-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bookings-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.bookings-table tbody tr {
    transition: all 0.2s ease;
}

.bookings-table tbody tr:hover {
    background: var(--bg-light);
}

.booking-id {
    font-weight: 700;
    color: var(--color-saffron);
}

.room-badge,
.taxi-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 12px;
}

.room-badge {
    background: linear-gradient(135deg, var(--color-blue) 0%, #5e7ce2 100%);
    color: white;
}

.taxi-badge {
    background: linear-gradient(135deg, var(--color-green) 0%, #1eaa55 100%);
    color: white;
}

.status-paid {
    display: inline-block;
    background: #d4edda;
    color: #155724;
    padding: 5px 12px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 12px;
}

.status-unpaid {
    display: inline-block;
    background: #fff3cd;
    color: #856404;
    padding: 5px 12px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 12px;
}

.btn-small {
    background: var(--color-saffron);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-small:hover {
    background: var(--color-maroon);
    transform: scale(1.05);
}

/* ============================================================================
   FORMS
   ============================================================================ */

.section-header {
    margin-bottom: 30px;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 36px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-light);
    font-size: 16px;
}

.booking-form-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.booking-form fieldset {
    border: none;
    padding: 25px 0;
    border-top: 1px solid var(--border-color);
}

.booking-form fieldset:first-child {
    border-top: none;
    padding-top: 0;
}

.booking-form legend {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-saffron);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-gold);
}

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

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

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group.highlight {
    background: linear-gradient(135deg, rgba(255, 153, 51, 0.05) 0%, rgba(255, 215, 0, 0.05) 100%);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-saffron);
    box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.1);
    background: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.amount-highlight {
    background: linear-gradient(135deg, var(--color-gold) 0%, rgba(255, 215, 0, 0.5) 100%);
    font-weight: 700;
    font-size: 18px;
    color: var(--color-maroon);
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.btn-primary,
.btn-secondary {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-saffron) 0%, var(--color-maroon) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(255, 153, 51, 0.3);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--color-saffron);
    color: var(--color-saffron);
}

/* ============================================================================
   SETTINGS
   ============================================================================ */

.settings-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.settings-panel {
    max-width: 600px;
}

.setting-group {
    margin-bottom: 30px;
}

.setting-group.divider-top {
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.setting-group h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-saffron);
    margin-bottom: 20px;
}

.setting-item {
    margin-bottom: 20px;
}

.setting-item label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.setting-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 14px;
}

.setting-input:focus {
    outline: none;
    border-color: var(--color-saffron);
    box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.1);
}

.photo-preview {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    max-width: 100%;
}

.preview-img {
    width: 100%;
    height: auto;
    display: block;
}

.file-upload {
    position: relative;
}

.file-input {
    display: none;
}

.file-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--color-saffron) 0%, var(--color-maroon) 100%);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.file-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(255, 153, 51, 0.3);
}

.settings-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

/* ============================================================================
   FOOTER
   ============================================================================ */

.footer {
    background: linear-gradient(135deg, var(--color-saffron) 0%, var(--color-maroon) 100%);
    color: white;
    text-align: center;
    padding: 30px;
    margin-top: 60px;
    border-top: 3px solid var(--color-gold);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-mantra {
    font-size: 18px;
    font-style: italic;
    margin-top: 10px;
    opacity: 0.9;
}

/* ============================================================================
   RESPONSIVE DESIGN - FULL DEVICE COMPATIBILITY
   ============================================================================ */

/* ULTRA WIDE (1920px+) */
@media (min-width: 1920px) {
    .main-content {
        max-width: 1600px;
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
    
    .bookings-table {
        font-size: 15px;
    }
}

/* DESKTOP (1200px - 1919px) */
@media (min-width: 1200px) {
    body {
        font-size: 16px;
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .header-nav ul {
        gap: 15px;
    }
    
    .action-buttons {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* LARGE DESKTOP (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .action-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* TABLET (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .header-content {
        padding: 0 20px;
        gap: 15px;
    }
    
    .logo-section {
        gap: 10px;
    }
    
    .om-symbol {
        font-size: 40px;
    }
    
    .logo-text h1 {
        font-size: 24px;
    }
    
    .header-nav ul {
        gap: 5px;
        flex-wrap: wrap;
    }
    
    .nav-link {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .yatra-name {
        font-size: 32px;
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .action-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .main-content {
        padding: 25px 20px;
    }
    
    .booking-form-container {
        padding: 20px;
    }
    
    .bookings-table {
        font-size: 13px;
    }
    
    .bookings-table th,
    .bookings-table td {
        padding: 12px 8px;
    }
    
    .stat-card {
        padding: 20px;
        gap: 15px;
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .stat-value {
        font-size: 24px;
    }
}

/* SMALL TABLET / LARGE PHONE (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    html, body {
        font-size: 14px;
    }
    
    .header {
        padding: 15px 0;
    }
    
    .header-content {
        padding: 0 15px;
        flex-direction: column;
        gap: 12px;
    }
    
    .logo-section {
        flex-direction: row;
        gap: 10px;
        align-items: center;
    }
    
    .om-symbol {
        font-size: 36px;
    }
    
    .logo-text h1 {
        font-size: 20px;
        margin: 0;
    }
    
    .logo-text p {
        font-size: 10px;
        margin: 0;
    }
    
    .header-nav ul {
        flex-direction: row;
        gap: 3px;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    
    .nav-link {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .nav-link i {
        display: none;
    }
    
    .user-section {
        gap: 10px;
        width: 100%;
        justify-content: space-between;
    }
    
    .user-info {
        font-size: 12px;
    }
    
    .user-name {
        font-size: 12px;
    }
    
    .user-role {
        font-size: 10px;
    }
    
    .yatra-banner {
        padding: 25px 20px;
        margin-bottom: 25px;
    }
    
    .yatra-name {
        font-size: 24px;
    }
    
    .yatra-dates {
        flex-direction: column;
        gap: 8px;
        font-size: 14px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card {
        padding: 15px;
        gap: 12px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .stat-title {
        font-size: 12px;
    }
    
    .stat-value {
        font-size: 22px;
    }
    
    .stat-meta {
        font-size: 11px;
    }
    
    .action-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .action-btn {
        padding: 12px 15px;
        font-size: 13px;
        gap: 8px;
    }
    
    .action-btn i {
        font-size: 16px;
    }
    
    .main-content {
        padding: 20px 12px;
    }
    
    .booking-form-container {
        padding: 15px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .form-group label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
        font-size: 13px;
    }
    
    .booking-form fieldset {
        padding: 15px 0;
    }
    
    .booking-form legend {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .bookings-table {
        font-size: 11px;
    }
    
    .bookings-table th,
    .bookings-table td {
        padding: 8px 5px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .recent-bookings h3,
    .quick-actions h3 {
        font-size: 20px;
    }
}

/* PHONE (481px - 575px) */
@media (min-width: 481px) and (max-width: 575px) {
    html, body {
        font-size: 13px;
    }
    
    .header-content {
        flex-direction: column;
        padding: 0 12px;
        gap: 10px;
    }
    
    .header-nav ul {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2px;
    }
    
    .nav-link {
        padding: 6px 8px;
        font-size: 11px;
    }
    
    .nav-link i {
        font-size: 14px;
    }
    
    .user-section {
        width: 100%;
    }
    
    .yatra-banner {
        padding: 20px;
    }
    
    .yatra-name {
        font-size: 22px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stat-card {
        padding: 12px;
        gap: 10px;
    }
    
    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .main-content {
        padding: 15px 10px;
    }
    
    .booking-form-container {
        padding: 12px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .bookings-table {
        font-size: 10px;
    }
    
    .bookings-table th,
    .bookings-table td {
        padding: 6px 4px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
}

/* SMALL PHONE (320px - 480px) */
@media (max-width: 480px) {
    * {
        margin: 0;
        padding: 0;
    }
    
    html, body {
        font-size: 12px;
        line-height: 1.4;
    }
    
    .header {
        padding: 12px 0;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .header-content {
        flex-direction: column;
        padding: 0 10px;
        gap: 8px;
    }
    
    .logo-section {
        flex-direction: row;
        gap: 8px;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    .om-symbol {
        font-size: 32px;
        line-height: 1;
    }
    
    .logo-text h1 {
        font-size: 16px;
        margin: 0;
        font-weight: 700;
    }
    
    .logo-text p {
        font-size: 9px;
        margin: 2px 0 0 0;
    }
    
    .header-nav ul {
        flex-direction: row;
        list-style: none;
        width: 100%;
        gap: 0;
        justify-content: space-around;
        flex-wrap: wrap;
    }
    
    .nav-link {
        padding: 6px 6px;
        font-size: 11px;
        border-radius: 4px;
        flex: 1;
        text-align: center;
        min-width: 70px;
    }
    
    .nav-link i {
        font-size: 12px;
        margin-right: 2px;
    }
    
    .user-section {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
    }
    
    .user-info {
        font-size: 10px;
        text-align: right;
    }
    
    .user-name {
        font-size: 11px;
    }
    
    .user-role {
        font-size: 8px;
    }
    
    .logout-btn {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .mandala-pattern {
        width: 400px;
        height: 400px;
        top: -150px;
        right: -150px;
    }
    
    .main-content {
        padding: 15px 8px;
    }
    
    .yatra-banner {
        padding: 15px;
        margin-bottom: 15px;
        border-radius: 10px;
    }
    
    .yatra-banner::before {
        font-size: 80px;
        top: -10px;
        right: 0;
    }
    
    .banner-decoration-left,
    .banner-decoration-right {
        width: 100px;
        height: 100px;
    }
    
    .yatra-badge {
        padding: 6px 12px;
        font-size: 10px;
    }
    
    .yatra-name {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .yatra-dates {
        flex-direction: column;
        gap: 4px;
        font-size: 12px;
    }
    
    .yatra-description {
        font-size: 12px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .stat-card {
        padding: 10px;
        gap: 8px;
        border-radius: 8px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
        border-radius: 8px;
    }
    
    .stat-content {
        flex: 1;
    }
    
    .stat-title {
        font-size: 11px;
        margin-bottom: 4px;
    }
    
    .stat-value {
        font-size: 18px;
        margin-bottom: 3px;
    }
    
    .stat-meta {
        font-size: 10px;
    }
    
    .quick-actions h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .action-buttons {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .action-btn {
        padding: 10px 12px;
        font-size: 12px;
        gap: 8px;
        border-radius: 6px;
    }
    
    .action-btn i {
        font-size: 14px;
    }
    
    .recent-bookings {
        padding: 12px;
        border-radius: 8px;
    }
    
    .recent-bookings h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .bookings-table {
        font-size: 9px;
        width: 100%;
        overflow-x: auto;
        display: block;
    }
    
    .bookings-table thead,
    .bookings-table tbody,
    .bookings-table tr {
        display: block;
        width: 100%;
    }
    
    .bookings-table th,
    .bookings-table td {
        padding: 6px 4px;
        text-align: left;
        display: inline-block;
        width: 48%;
    }
    
    .section-header {
        margin-bottom: 15px;
    }
    
    .section-header h2 {
        font-size: 22px;
        margin-bottom: 5px;
    }
    
    .section-header p {
        font-size: 12px;
    }
    
    .booking-form-container {
        padding: 12px;
        border-radius: 8px;
    }
    
    .booking-form fieldset {
        padding: 12px 0;
    }
    
    .booking-form legend {
        font-size: 14px;
        margin-bottom: 10px;
        padding-bottom: 8px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .form-group {
        display: flex;
        flex-direction: column;
    }
    
    .form-group label {
        font-size: 12px;
        margin-bottom: 5px;
        font-weight: 600;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 8px;
        font-size: 12px;
        border-radius: 6px;
        border: 1px solid var(--border-color);
    }
    
    .form-group textarea {
        min-height: 80px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 10px 16px;
        font-size: 13px;
        gap: 8px;
        border-radius: 6px;
    }
    
    .settings-container {
        padding: 12px;
    }
    
    .settings-panel {
        width: 100%;
    }
    
    .setting-group {
        margin-bottom: 15px;
    }
    
    .setting-group h3 {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .setting-input {
        width: 100%;
        padding: 8px;
        font-size: 12px;
        border-radius: 6px;
    }
    
    .file-label {
        width: 100%;
        padding: 10px;
        font-size: 12px;
        justify-content: center;
    }
    
    .footer {
        padding: 20px 10px;
        margin-top: 30px;
    }
    
    .footer-mantra {
        font-size: 14px;
        margin-top: 8px;
    }
    
    /* Horizontal scrolling for tables */
    .bookings-table {
        overflow-x: auto;
    }
    
    /* Hide some columns on very small screens */
    .bookings-table .booking-id,
    .bookings-table .room-badge,
    .bookings-table .taxi-badge {
        font-size: 8px;
        padding: 3px 2px;
    }
}
