/* --- RESET & FONTS --- */
* { box-sizing: border-box; font-family: 'Inter', 'Segoe UI', sans-serif; -webkit-tap-highlight-color: transparent; }
body { margin: 0; padding: 0; background-color: #f3f4f6; color: #1e293b; }

/* --- BUTTONS & INPUTS (Touch Friendly) --- */
.btn-primary {
    background: linear-gradient(135deg, #064e3b 0%, #059669 100%);
    color: white; border: none; padding: 14px 20px; border-radius: 10px;
    font-weight: 600; cursor: pointer; transition: 0.3s; width: 100%;
    font-size: 15px; letter-spacing: 0.5px;
}
.btn-primary:active { transform: scale(0.98); }

input, select {
    width: 100%; padding: 14px; border: 1px solid #cbd5e1; border-radius: 10px;
    font-size: 16px; /* 16px font prevents zoom on iPhone */
    background: white; margin-bottom: 15px;
}
input:focus, select:focus { border-color: #059669; outline: none; box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1); }

/* --- ADMIN LAYOUT --- */
.admin-wrapper { display: flex; min-height: 100vh; overflow-x: hidden; }

/* Sidebar (Desktop default) */
.sidebar {
    width: 260px; background: #0f172a; color: white;
    display: flex; flex-direction: column; padding: 20px;
    position: fixed; height: 100%; z-index: 1000;
    transition: transform 0.3s ease;
}
.sidebar-logo { font-size: 20px; font-weight: 800; color: #34d399; margin-bottom: 30px; text-align: center; }
.menu-item {
    display: flex; align-items: center; padding: 14px; color: #94a3b8;
    text-decoration: none; margin-bottom: 8px; border-radius: 8px; font-size: 15px;
}
.menu-item i { width: 30px; font-size: 18px; }
.menu-item:hover, .menu-item.active { background: rgba(52, 211, 153, 0.1); color: #34d399; }

/* Main Content */
.main-content {
    margin-left: 260px; flex: 1; padding: 30px; width: calc(100% - 260px);
    transition: margin 0.3s ease;
}

/* Header with Menu Button (Visible on Mobile) */
.mobile-header {
    display: none; justify-content: space-between; align-items: center;
    background: #064e3b; color: white; padding: 15px 20px;
    position: sticky; top: 0; z-index: 900; box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.menu-toggle { font-size: 24px; cursor: pointer; background: none; border: none; color: white; }

/* Cards & Tables */
.card {
    background: white; padding: 20px; border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); margin-bottom: 15px;
}
/* Table Scroll wrapper for Mobile */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; min-width: 500px; border-collapse: collapse; }
th, td { padding: 12px; border-bottom: 1px solid #e2e8f0; text-align: left; }
th { background: #f8fafc; color: #64748b; font-size: 13px; text-transform: uppercase; }

/* --- USER DASHBOARD --- */
.user-nav {
    background: white; padding: 15px 20px; display: flex; justify-content: space-between;
    align-items: center; box-shadow: 0 2px 5px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100;
}
.hero-box {
    background: #064e3b; color: white; padding: 40px 20px 60px 20px; text-align: center;
    border-radius: 0 0 25px 25px;
}
.search-container {
    background: white; padding: 20px; border-radius: 16px;
    width: 90%; margin: -40px auto 20px auto; /* Pull up effect */
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: flex; gap: 15px;
}

/* --- MOBILE SPECIFIC (The Magic Part) --- */
@media (max-width: 768px) {
    /* Admin Mobile */
    .sidebar { transform: translateX(-100%); width: 260px; } /* Hide Sidebar */
    .sidebar.open { transform: translateX(0); } /* Show Sidebar when active */
    .main-content { margin-left: 0; width: 100%; padding: 15px; }
    .mobile-header { display: flex; } /* Show Header */
    
    /* Overlay when menu is open */
    .overlay {
        display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0,0,0,0.5); z-index: 999;
    }
    .overlay.active { display: block; }

    /* Dashboard Mobile */
    .hero-box h1 { font-size: 22px; }
    .search-container { flex-direction: column; gap: 5px; width: 95%; padding: 15px; }
    .card { padding: 15px; }
    
    /* Stats Grid to 1 column */
    .stat-grid { grid-template-columns: 1fr; }
}
/* --- MODERN APP LOGIN STYLES --- */
.app-login-body {
    background-color: #f8fafc;
    margin: 0; padding: 0;
    font-family: 'Inter', sans-serif;
}

/* 1. Curved Header Background */
.login-header {
    background: linear-gradient(135deg, #064e3b 0%, #10b981 100%);
    height: 280px;
    border-radius: 0 0 40px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 60px;
    color: white;
    text-align: center;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2);
}

.app-logo {
    font-size: 32px; font-weight: 800; letter-spacing: -1px;
    margin-bottom: 5px; text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.app-tagline {
    font-size: 14px; opacity: 0.9; font-weight: 400;
}

/* 2. Floating Form Card */
.login-card {
    background: white;
    width: 90%;
    max-width: 400px;
    margin: -60px auto 20px auto; /* Pull up overlap effect */
    padding: 30px 25px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    position: relative;
}

.login-title {
    font-size: 20px; font-weight: 700; color: #1e293b; margin: 0 0 10px 0;
}
.login-desc {
    font-size: 13px; color: #64748b; margin-bottom: 25px; line-height: 1.5;
}

/* 3. Modern Inputs */
.mobile-input-group {
    display: flex; align-items: center;
    border: 2px solid #e2e8f0; border-radius: 12px;
    background: #fff; transition: 0.3s;
    overflow: hidden; margin-bottom: 20px;
}
.mobile-input-group:focus-within {
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}
.country-code {
    background: #f1f5f9; color: #475569; font-weight: 700;
    padding: 14px 15px; font-size: 15px; border-right: 1px solid #e2e8f0;
}
.clean-input {
    border: none; outline: none; padding: 14px; width: 100%;
    font-size: 16px; font-weight: 600; color: #334155; letter-spacing: 1px;
}

/* 4. OTP Styling */
.otp-input {
    text-align: center; letter-spacing: 10px; font-size: 24px; font-weight: bold;
    border: 2px solid #e2e8f0; border-radius: 12px; padding: 12px; width: 100%;
    transition: 0.3s; color: #064e3b;
}
.otp-input:focus { border-color: #10b981; outline: none; }

/* 5. Partner Link */
.partner-link-box {
    text-align: center; margin-top: 30px;
    padding-top: 20px; border-top: 1px dashed #e2e8f0;
}
.partner-btn {
    color: #064e3b; font-weight: 700; text-decoration: none; font-size: 14px;
    display: inline-flex; align-items: center; gap: 5px;
}
/* --- INSTAGRAM STYLE FEED & UI --- */

/* --- BOTTOM NAV (CENTERED & SPACED) --- */
        .bottom-nav {
            position: fixed; bottom: 0; left: 0; width: 100%; height: 70px;
            background: white; border-top: 1px solid #eee;
            display: flex; justify-content: space-evenly; /* Proper Gap */
            align-items: center; z-index: 9999;
            box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
            padding-bottom: 5px; /* Mobile safe area */
        }
        
        .nav-item { 
            flex: 1; /* Barabar jagah lega */
            display: flex; flex-direction: column; align-items: center; justify-content: center;
            color: #94a3b8; cursor: pointer; padding: 5px; 
            font-size: 22px; transition: 0.2s;
        }
        
        .nav-item.active { color: #064e3b; transform: translateY(-2px); }
        .nav-item.active i { filter: drop-shadow(0 2px 4px rgba(6, 78, 59, 0.3)); }
        
        /* CENTER PLUS BUTTON */
        .nav-plus-container {
            flex: 1; display: flex; justify-content: center; align-items: center;
            position: relative; top: -20px; /* Thoda upar utha hua */
        }
        .nav-plus { 
            width: 55px; height: 55px; 
            background: linear-gradient(135deg, #2563eb, #1d4ed8); 
            color: white; border-radius: 50%; 
            display: flex; justify-content: center; align-items: center; 
            font-size: 26px; 
            box-shadow: 0 8px 15px rgba(37, 99, 235, 0.4); 
            border: 4px solid white; cursor: pointer;
            transition: transform 0.2s;
        }
        .nav-plus:active { transform: scale(0.95); }
/* Full Screen Feed (Reels Style) */
.feed-container {
    height: 100vh; width: 100%;
    overflow-y: scroll; scroll-snap-type: y mandatory;
    background: #000; /* Black background for immersive feel */
}

/* Individual Post Card */
.feed-card {
    height: 100vh; width: 100%;
    scroll-snap-align: start;
    position: relative;
    display: flex; justify-content: center; align-items: center;
    background: #111;
}

.feed-img {
    width: 100%; height: 100%;
    object-fit: cover; /* Cover puri screen bharega */
    opacity: 0.9;
}

/* Post Overlay Info (Like Instagram captions) */
.post-overlay {
    position: absolute; bottom: 80px; left: 0; width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
}
.post-shop-name { font-size: 18px; font-weight: bold; margin-bottom: 5px; display: flex; align-items: center; gap: 5px; }
.post-desc { font-size: 14px; opacity: 0.9; margin-bottom: 15px; }
.action-btn {
    background: #10b981; color: white; border: none;
    padding: 10px 20px; border-radius: 30px; font-weight: bold;
    text-decoration: none; font-size: 14px; display: inline-block;
}

/* Ad Card Design */
.ad-card { background: #fff; color: #333; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 20px; }
.ad-badge { background: #fbbf24; color: #000; padding: 5px 10px; font-weight: bold; border-radius: 4px; position: absolute; top: 20px; right: 20px; }

/* Sections (Profile, Search etc) */
.page-section {
    display: none; /* Default hidden */
    padding: 20px; padding-bottom: 80px;
    background: #f8fafc; min-height: 100vh;
}
.page-section.active { display: block; }

/* Profile Form */
.profile-img-upload {
    width: 100px; height: 100px; border-radius: 50%; background: #ddd;
    margin: 0 auto 20px auto; display: block; object-fit: cover;
    border: 3px solid #10b981;
}
/* --- SEARCH & BOOKING STYLES --- */

/* Blinking Notification */
@keyframes blinker { 50% { opacity: 0; } }
.blink-alert {
    background: #ea580c; color: white; padding: 10px;
    text-align: center; font-weight: bold; font-size: 13px;
    animation: blinker 1.5s linear infinite;
    position: sticky; top: 0; z-index: 2000;
}

/* Service Checkbox List */
.service-list-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px; border-bottom: 1px solid #eee; background: white;
}
.service-list-item:last-child { border-bottom: none; }
.service-checkbox { width: 20px; height: 20px; accent-color: #064e3b; }

/* Secure Call Button */
.secure-call-btn {
    background: #0ea5e9; color: white; border: none; padding: 10px;
    border-radius: 8px; width: 100%; display: flex; justify-content: center; 
    align-items: center; gap: 10px; font-weight: bold; cursor: pointer;
}

/* Advanced Search Form */
.adv-search-box {
    background: white; padding: 20px; border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); margin-bottom: 20px;
}
.divider-text { text-align: center; margin: 15px 0; color: #94a3b8; font-size: 12px; font-weight: bold; }