:root {
    --primary: #2563eb;
    --primary-light: #eff6ff;
    --bg: #f3f4f6;
    --white: #ffffff;
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --green: #10b981;
    --red: #ef4444;
    --border: #e2e8f0;
    --sidebar-width: 260px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Plus Jakarta Sans", sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text-dark);
}

/* --- HEADER --- */
header {
    background: var(--white);
    height: 70px;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1100;
    width: 100%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Menu button sirf mobile par dikhega */
.menu-btn {
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    display: none;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-btn {
    background: var(--primary);
    color: white;
    padding: 10px 24px;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

/* --- MAIN WRAPPER --- */
.wrapper {
    display: flex;
    min-height: calc(100vh - 70px);
    position: relative;
}

/* --- SIDEBAR (Desktop: Visible, Mobile: Hidden) --- */
.sidebar {
    width: var(--sidebar-width);
    background: var(--white);
    border-right: 1px solid var(--border);
    padding: 30px 20px;
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
    transition: 0.3s ease;
}

.sidebar ul {
    list-style: none;
}
.sidebar li {
    padding: 14px 18px;
    margin-bottom: 8px;
    border-radius: 12px;
    cursor: pointer;
    color: var(--text-gray);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}
.sidebar li.active,
.sidebar li:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* --- CONTENT AREA --- */
.content {
    flex: 1;
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- CARDS --- */
.card {
    background: var(--white);
    border-radius: 24px;
    padding: 25px;
    border: 1px solid var(--border);
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* --- HIDDEN LEAR (Overlay) --- */
.lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 24px;
}
.is-logged-in .lock-overlay {
    display: none;
}

/* --- PRODUCTS GRID --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.product-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 25px 15px;
    text-align: center;
    transition: 0.3s ease;
    cursor: pointer;
}
.product-item:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}
.product-item i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 12px;
    display: block;
}
.p-badge {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
}

footer {
    text-align: center;
    padding: 30px;
    color: var(--text-gray);
    border-top: 1px solid var(--border);
    background: var(--white);
}

/* --- RESPONSIVE FIXES --- */
@media (max-width: 992px) {
    .menu-btn {
        display: block;
    }

    .sidebar {
        position: fixed;
        left: -100%;
        top: 70px;
        z-index: 1000;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
    }

    body.sidebar-open .sidebar {
        left: 0;
    }

    /* Overlay for mobile when sidebar is open */
    .sidebar-overlay {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        display: none;
        z-index: 999;
    }
    body.sidebar-open .sidebar-overlay {
        display: block;
    }
}

@media (max-width: 500px) {
    .content {
        padding: 15px;
    }
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .amount {
        font-size: 1.8rem;
    }
}

:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
}

/* Modal Overlay Styling */
/* Modal Overlay Styling */
.login-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);

    /* Ise 'flex' ki jagah 'none' karein taaki shuruat mein chhupa rahe */
    display: none;

    align-items: center;
    justify-content: center;
    z-index: 9999;
    font-family: "Plus Jakarta Sans", sans-serif;
}
/* Modal Box */
.modal-content {
    background: var(--white);
    width: 90%;
    max-width: 420px;
    padding: 40px;
    border-radius: 28px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    animation: fadeInScale 0.3s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 24px;
    color: var(--text-gray);
    cursor: pointer;
    transition: 0.2s;
}

.close-btn:hover {
    color: var(--text-dark);
}

/* Header Styling */
.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 15px;
}

.modal-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.modal-header p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Form Styling */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 15px;
    color: var(--text-gray);
}

.input-wrapper input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    background: var(--bg-light);
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.input-wrapper input:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Options & Button */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    margin-bottom: 25px;
}

.form-options a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.submit-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.modal-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.modal-footer a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.slider {
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 20px;
}

.slides {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease-in-out;
}

.slides img {
    width: 100%;
    flex-shrink: 0; /* important */
    height: 180px;
    object-fit: cover;
}
