/* ============================================================
   DESHI ZAIQA — AUTH & ADMIN STYLES
   ============================================================ */

/* ===================== LOGIN PAGE ===================== */
.login-body {
    min-height: 100vh;
    background: linear-gradient(145deg, #160a02 0%, #3d1a00 55%, #7a2a00 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    font-family: 'Poppins', system-ui, sans-serif;
}

.login-wrap {
    width: 100%;
    max-width: 440px;
}

.login-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 40px 36px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    margin-bottom: 30px;
    padding-bottom: 22px;
    border-bottom: 1px solid #f0f0f0;
}

.login-logo {
    font-size: 2.6rem;
    line-height: 1;
}

.login-brand h4 {
    margin: 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    color: #1a1a1a;
    font-size: 1.35rem;
    line-height: 1.2;
}

.login-brand small {
    color: #999;
    font-size: .78rem;
    display: block;
    margin-top: 2px;
}

/* Tabs */
.login-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 26px;
    background: #f5f5f5;
    border-radius: 14px;
    padding: 5px;
}

.ltab {
    flex: 1;
    border: none;
    background: transparent;
    padding: 11px;
    border-radius: 10px;
    font-weight: 600;
    font-size: .9rem;
    color: #777;
    cursor: pointer;
    transition: all .22s ease;
    font-family: 'Poppins', system-ui, sans-serif;
}

.ltab.active {
    background: #ff5722;
    color: #fff;
    box-shadow: 0 4px 14px rgba(255, 87, 34, .38);
}

.ltab:not(.active):hover {
    background: rgba(255, 87, 34, .08);
    color: #ff5722;
}

/* Hints */
.login-hint {
    color: #999;
    font-size: .84rem;
    margin-bottom: 22px;
    line-height: 1.5;
}

/* Form controls in login */
.login-card .form-control,
.login-card .form-select {
    border-radius: 12px;
    border: 1.5px solid #e8e8e8;
    padding: 12px 16px;
    font-size: .9rem;
    transition: border-color .2s;
    font-family: 'Poppins', system-ui, sans-serif;
}

.login-card .form-control:focus,
.login-card .form-select:focus {
    border-color: #ff5722;
    box-shadow: 0 0 0 3px rgba(255, 87, 34, .12);
}

.login-card .input-group-text {
    border-radius: 12px 0 0 12px;
    border: 1.5px solid #e8e8e8;
    border-right: none;
    background: #fafafa;
    color: #555;
    font-size: .9rem;
}

.login-card .input-group .form-control {
    border-radius: 0 12px 12px 0;
    border-left: none;
}

.login-card .input-group .form-control:focus {
    border-left: none;
}

/* Submit button */
.btn-login-submit {
    background: linear-gradient(135deg, #ff5722 0%, #ff9800 100%);
    border: none;
    color: #fff;
    padding: 14px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all .28s ease;
    display: block;
    width: 100%;
    font-family: 'Poppins', system-ui, sans-serif;
    letter-spacing: .3px;
}

.btn-login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(255, 87, 34, .42);
}

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

.login-terms {
    font-size: .73rem;
    color: #bbb;
    text-align: center;
    margin-top: 14px;
    line-height: 1.5;
}

/* Navbar Login Button */
.btn-login-nav {
    background: linear-gradient(135deg, #ff5722, #ff9800) !important;
    color: #fff !important;
    border-radius: 22px !important;
    padding: 8px 20px !important;
    font-weight: 600 !important;
    font-size: .85rem !important;
}

.btn-login-nav:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 87, 34, .4) !important;
    color: #fff !important;
    background: linear-gradient(135deg, #e64a19, #fb8c00) !important;
}

.nav-user-name {
    color: #ff9800 !important;
    font-weight: 600 !important;
    font-size: .85rem !important;
}

.nav-logout {
    color: rgba(255, 255, 255, .7) !important;
    font-size: .85rem !important;
}

.nav-logout:hover {
    color: #ff5722 !important;
    background: rgba(255, 87, 34, .1) !important;
}

/* ===================== ADMIN PANEL ===================== */
.admin-body {
    font-family: 'Poppins', system-ui, sans-serif;
    background: #f4f5f8;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    color: #1a1a1a;
}

/* Admin Topbar */
.admin-topbar {
    background: #160a02;
    color: #fff;
    padding: 14px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .35);
    height: 58px;
}

.admin-brand-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: .2px;
}

.admin-brand-badge {
    font-size: .72rem;
    background: #ff5722;
    color: #fff;
    padding: 2px 10px;
    border-radius: 20px;
    margin-left: 10px;
    font-weight: 600;
    vertical-align: middle;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.admin-topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-topbar-user {
    font-size: .85rem;
    color: rgba(255, 255, 255, .7);
}

.btn-admin-logout {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    color: #fff;
    padding: 7px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-size: .82rem;
    font-weight: 600;
    transition: all .2s;
    font-family: 'Poppins', system-ui, sans-serif;
}

.btn-admin-logout:hover {
    background: rgba(255, 87, 34, .3);
    border-color: #ff5722;
}

/* Admin Layout */
.admin-layout {
    display: flex;
    min-height: calc(100vh - 58px);
}

/* Sidebar */
.admin-sidebar {
    width: 230px;
    background: #fff;
    border-right: 1px solid #eaecf0;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 58px;
    height: calc(100vh - 58px);
    overflow-y: auto;
}

.sidebar-nav {
    padding: 16px 0;
    flex: 1;
}

.sidebar-label {
    font-size: .68rem;
    font-weight: 700;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 20px 4px;
}

.sidebar-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    padding: 12px 20px;
    font-size: .9rem;
    color: #555;
    cursor: pointer;
    transition: all .18s;
    border-left: 3px solid transparent;
    font-family: 'Poppins', system-ui, sans-serif;
}

.sidebar-btn.active,
.sidebar-btn:hover {
    background: #fff8f5;
    color: #ff5722;
    border-left-color: #ff5722;
    font-weight: 600;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid #f0f0f0;
}

.sidebar-site-link {
    font-size: .82rem;
    color: #999;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color .2s;
}

.sidebar-site-link:hover { color: #ff5722; }

/* Admin Main Content */
.admin-main {
    flex: 1;
    padding: 28px 32px;
    overflow-y: auto;
    min-width: 0;
}

.admin-page-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: #1a1a1a;
}

.admin-page-sub {
    font-size: .85rem;
    color: #999;
    margin-bottom: 26px;
}

/* Stats Grid */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
    margin-bottom: 30px;
}

.admin-stat-card {
    background: #fff;
    border-radius: 18px;
    padding: 24px 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    text-align: center;
    border-top: 3px solid #ff5722;
}

.admin-stat-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ff5722;
    line-height: 1;
    display: block;
}

.admin-stat-lbl {
    font-size: .8rem;
    color: #888;
    margin-top: 6px;
    font-weight: 500;
}

/* Cards / Panels */
.admin-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, .06);
    overflow: hidden;
    margin-bottom: 24px;
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid #f5f5f5;
}

.admin-card-title {
    font-weight: 700;
    font-size: 1rem;
    color: #1a1a1a;
    margin: 0;
}

.btn-admin-add {
    background: linear-gradient(135deg, #ff5722, #ff9800);
    border: none;
    color: #fff;
    padding: 9px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: .85rem;
    cursor: pointer;
    transition: all .22s;
    font-family: 'Poppins', system-ui, sans-serif;
}

.btn-admin-add:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255, 87, 34, .38);
}

/* Table */
.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.admin-table th {
    background: #fafafa;
    padding: 13px 18px;
    text-align: left;
    font-size: .78rem;
    font-weight: 700;
    color: #777;
    text-transform: uppercase;
    letter-spacing: .6px;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
}

.admin-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #f5f5f5;
    font-size: .88rem;
    color: #333;
    vertical-align: middle;
}

.admin-table tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover td { background: #fafafa; }

/* Badges */
.badge-veg     { color: #2e7d32; background: #e8f5e9; padding: 4px 12px; border-radius: 20px; font-size: .76rem; font-weight: 700; white-space: nowrap; }
.badge-nonveg  { color: #c62828; background: #ffebee; padding: 4px 12px; border-radius: 20px; font-size: .76rem; font-weight: 700; white-space: nowrap; }
.badge-enabled { color: #1b5e20; background: #c8e6c9; padding: 4px 12px; border-radius: 20px; font-size: .76rem; font-weight: 700; }
.badge-disabled{ color: #6d4c41; background: #efebe9; padding: 4px 12px; border-radius: 20px; font-size: .76rem; font-weight: 700; }
.badge-special { color: #e65100; background: #fff3e0; padding: 4px 12px; border-radius: 20px; font-size: .76rem; font-weight: 700; }

/* Action Buttons */
.btn-tbl {
    border: none;
    padding: 6px 13px;
    border-radius: 8px;
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .18s;
    font-family: 'Poppins', system-ui, sans-serif;
    margin-right: 4px;
    margin-bottom: 2px;
}

.btn-tbl-edit   { background: #e3f2fd; color: #1565c0; }
.btn-tbl-edit:hover   { background: #1565c0; color: #fff; }

.btn-tbl-del    { background: #ffebee; color: #c62828; }
.btn-tbl-del:hover    { background: #c62828; color: #fff; }

.btn-tbl-on     { background: #e8f5e9; color: #1b5e20; }
.btn-tbl-on:hover     { background: #1b5e20; color: #fff; }

.btn-tbl-off    { background: #fff3e0; color: #e65100; }
.btn-tbl-off:hover    { background: #e65100; color: #fff; }

/* Product thumbnail in admin table */
.prod-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 10px;
    background: #f5f5f5;
}

/* Feedback Cards */
.fb-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    margin-bottom: 14px;
    border-left: 4px solid #ff5722;
    transition: box-shadow .2s;
}

.fb-card:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, .1); }

.fb-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.fb-user {
    font-weight: 700;
    font-size: .9rem;
    color: #1a1a1a;
}

.fb-phone {
    font-size: .8rem;
    color: #999;
}

.fb-type-badge {
    font-size: .74rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    background: #fff3e0;
    color: #e65100;
    text-transform: capitalize;
}

.fb-rating {
    font-size: .82rem;
    color: #f9a825;
    font-weight: 700;
}

.fb-text {
    font-size: .9rem;
    color: #444;
    line-height: 1.6;
    margin: 0;
}

.fb-improve {
    font-size: .8rem;
    color: #999;
    margin-top: 6px;
}

/* Empty state */
.admin-empty {
    text-align: center;
    padding: 48px 20px;
    color: #bbb;
}

.admin-empty-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 12px;
}

/* Loading state */
.admin-loading {
    text-align: center;
    padding: 40px;
    color: #bbb;
    font-size: .9rem;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
    .admin-layout { flex-direction: column; }

    .admin-sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid #eee;
        flex-direction: row;
    }

    .sidebar-nav {
        display: flex;
        flex-direction: row;
        padding: 8px;
        overflow-x: auto;
        gap: 4px;
    }

    .sidebar-label { display: none; }

    .sidebar-btn {
        border-left: none;
        border-bottom: 3px solid transparent;
        white-space: nowrap;
        border-radius: 10px;
        padding: 10px 16px;
    }

    .sidebar-btn.active,
    .sidebar-btn:hover {
        border-left-color: transparent;
        border-bottom-color: #ff5722;
        border-radius: 10px 10px 0 0;
    }

    .sidebar-footer { display: none; }

    .admin-main { padding: 16px; }

    .admin-topbar { padding: 12px 16px; }
    .admin-brand-badge { display: none; }

    .login-card { padding: 28px 22px; }
}

@media (max-width: 480px) {
    .login-card { padding: 24px 18px; }
    .admin-topbar-user { display: none; }
}
