/* Basic mobile-first styles */
/* FIX: Global Box Sizing - Layout ko tootne se bachata hai */
*, *::before, *::after {
    box-sizing: border-box;
}

/* GLOBAL RESET FOR TAP HIGHLIGHTS */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video, button, input, select, textarea {
    -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none; /* Text selection disable */
    user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    outline: none !important;
}

/* Sirf inputs me text select karne ki permission dein */
input, textarea, select {
    -webkit-user-select: text;
    user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

body {
    font-family: sans-serif;
    margin: 0;
    padding-bottom: 110px; /* Extra space for larger bottom nav */
    background-color: #f8f9fa; /* Slightly off-white background for app feel */
}

.main-content {
    padding: 15px;
}

/* Bottom Navigation Bar */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 75px; /* Bottom bar ko aur choda kar diya */
    background-color: #ffffff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.nav-item {
    color: #333;
    text-decoration: none;
    text-align: center;
    font-size: 14px; /* Text ko bada kar diya */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: color 0.3s;
}

.nav-item span { font-weight: 500; }

/* Special style for Rental button */
.nav-item-main {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    width: 72px; /* Gol button bada kar diya */
    height: 72px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2px;
    transform: translateY(-28px); 
    border: 5px solid #f8f9fa; /* Match body bg */
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}
.nav-item-main span { font-size: 12px; font-weight: bold; }
.nav-item svg { transition: transform 0.2s; }
.nav-item:active svg { transform: scale(0.9); }

/* SEARCH BAR STYLES */
.search-wrapper {
    padding: 0 15px;
    margin-bottom: 5px;
}
.search-bar {
    background: white;
    border-radius: 12px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    border: 1px solid #eee;
}
.search-bar span { margin-right: 10px; opacity: 0.5; }
.search-bar input {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 14px;
    outline: none;
    padding: 0;
}

/* --- NEW APP UI STYLES --- */

/* App Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 15px 10px 15px;
    background: transparent;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    /* box-shadow: 0 4px 20px rgba(0,0,0,0.05); Removed for cleaner look */
}
.header-title h1 { 
    margin: 0; 
    font-size: 22px; 
    font-weight: 800; 
    color: #1a1a1a; 
    letter-spacing: -0.5px;
}
.header-icon-btn { 
    width: 40px;
    height: 40px;
    background-color: white; /* Light grey circle */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.header-icon-btn:active { transform: scale(0.92); background-color: #eef0f3; }
.header-icon-btn svg { width: 22px; height: 22px; stroke-width: 2px; }

/* Promo Banner */
.banner-area { padding: 10px 15px; }
.promo-banner {
    background: linear-gradient(120deg, #2c3e50, #4ca1af);
    border-radius: 16px;
    padding: 20px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(76, 161, 175, 0.25);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100px;
}
.promo-banner h3 { margin: 0 0 5px 0; font-size: 18px; font-weight: 700; }
.promo-banner p { margin: 0 0 15px 0; font-size: 12px; opacity: 0.9; max-width: 70%; line-height: 1.4; }
.banner-circle { position: absolute; background: rgba(255,255,255,0.1); border-radius: 50%; }
.banner-btn {
    background: white;
    color: #2c3e50;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    width: fit-content;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Room List Grid Layout */
.room-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns grid */
    gap: 15px; /* Tighter gap for mobile */
    padding: 0 15px;
}

/* Admin panel me room list ko grid na banakar simple list banayein */
.admin-page .room-list {
    display: block;
}

/* Room card styles */
.room-card {
    border: none;
    border-radius: 12px;
    background: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.03);
    padding: 0; /* Padding removed for edge-to-edge image */
    /* margin-bottom: 15px; */ /* Replaced by grid-gap */
    position: relative;
    overflow: hidden; /* To keep rounded corners with image */
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    cursor: pointer;
}
.room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.room-card .room-photo {
    width: 100%;
    height: 120px; /* Slightly taller */
    object-fit: contain !important; /* Force object fit */
    display: block;
    background-color: #fff; /* Image ke peeche halka background */
    border-bottom: 1px solid #f0f0f0;
}
.room-card .room-photo-placeholder {
    width: 100%;
    height: 110px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa; font-size: 12px;
}
.room-details { 
    padding: 12px;
    flex-grow: 1;
}
.room-details h3 {
    margin: 0 0 3px 0;
    font-size: 15px; /* Smaller font */
    font-weight: 700;
    color: #222;
}
.room-details .room-type {
    margin: 0;
    font-size: 12px; /* Smaller font */
    color: #888;
    margin-bottom: 8px;
}
.room-details .room-price {
    font-size: 14px;
    color: #007bff;
    font-weight: bold;
}
.room-details .room-price small { font-weight: normal; color: #999; font-size: 10px; }

/* These are now used for the badge background */
.status-available { background-color: #28a745; }
.status-booked { background-color: #dc3545; }

/* Make booked rooms look disabled and not interactive */
.room-card.booked {
    opacity: 0.6;
    cursor: not-allowed;
}
.room-card.booked:hover { transform: none; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }

/* Form & Resume Styles */
.form-container { padding: 20px; padding-bottom: 100px; }
.form-section { margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.form-section h3 { color: #007bff; margin-bottom: 15px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; font-size: 14px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 5px; box-sizing: border-box; }
.btn-submit { width: 100%; padding: 15px; background-color: #28a745; color: white; border: none; border-radius: 5px; font-size: 18px; font-weight: bold; cursor: pointer; }

.resume-card { background: white; border: 2px solid #007bff; border-radius: 10px; padding: 20px; margin-top: 20px; position: relative; }
.resume-header { text-align: center; border-bottom: 2px solid #eee; padding-bottom: 15px; margin-bottom: 15px; }
.resume-photo { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 3px solid #007bff; }
.resume-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 14px; }
.resume-label { font-weight: bold; color: #555; }
.status-badge { display: inline-block; padding: 5px 10px; border-radius: 15px; color: white; font-size: 12px; font-weight: bold; }
.bg-pending { background: orange; }
.bg-approved { background: green; }
.bg-rejected { background: red; }
.status-badge-on-card {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 6px;
    color: white;
    font-size: 11px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Floating Action Button */
.fab-support {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #25D366; /* WhatsApp Green */
    border-radius: 50%;
    display: none !important; /* HIDING WHATSAPP BUTTON GLOBALLY AS REQUESTED */
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 99;
    transition: transform 0.2s;
}
.fab-support:active { transform: scale(0.9); }
.telegram-box { background: #e3f2fd; border: 1px solid #2196f3; padding: 15px; border-radius: 8px; margin-top: 20px; text-align: center; }

@media print { .bottom-nav, .btn-download { display: none !important; } body { padding-bottom: 0; background: white; } .resume-card { border: none; } }
