/* =========================================
   PREMIUM DESIGN SYSTEM - BizManager 2.0
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@500;700&display=swap');

:root {
    /* --- COLOR PALETTE (HSL) --- */
    /* Primary: Indigo-Violet Gradient Feel */
    --primary-h: 250;
    --primary-s: 84%;
    --primary-l: 54%;
    --primary-color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    --primary-hover: hsl(var(--primary-h), var(--primary-s), 45%);
    --primary-light: hsl(var(--primary-h), var(--primary-s), 96%);

    /* Secondary: Emerald (Success) */
    --secondary-h: 158;
    --secondary-s: 64%;
    --secondary-l: 52%;
    --secondary-color: hsl(var(--secondary-h), var(--secondary-s), var(--secondary-l));
    --secondary-light: hsl(var(--secondary-h), var(--secondary-s), 96%);

    /* Accents */
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;

    /* Neutrals */
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    /* Backgrounds */
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-sidebar: #0f172a;
    /* Slate 900 */

    /* Borders & Shadows */
    --border-color: #e2e8f0;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;

    /* Shadows - "Super Shadows" for depth */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ensure inputs don't overflow */
input,
select,
textarea {
    box-sizing: border-box;
    max-width: 100%;
}

body {
    background-color: var(--bg-body);
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    font-size: 15px;
    line-height: 1.5;
    height: 100vh;
    overflow: hidden;
    /* App-like feel */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    /* Headings pop more */
    color: var(--text-main);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* --- APP LAYOUT --- */
.app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* SIDEBAR */
.sidebar {
    width: 260px;
    background: var(--bg-sidebar);
    color: #f8fafc;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 50;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    /* Slightly smaller for better fit */
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.logo-text {
    display: block;
    /* Ensure it respects line height */
    max-width: 180px;
    /* Force wrap if too long */
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
    font-size: 1.2rem;
    flex-shrink: 0;
    /* Prevent icon shrinking */
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 20px 12px;
}

.nav-label {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: #64748b;
    font-weight: 600;
    margin: 24px 0 8px 12px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-sm);
    color: #94a3b8;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-bottom: 2px;
    cursor: pointer;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    transform: translateX(3px);
}

.nav-item.active {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.nav-item .icon {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
    opacity: 0.9;
}

/* MAIN CONTENT */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-body);
    position: relative;
}

/* TOP BAR */
.top-bar {
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    z-index: 40;
}

.mobile-menu-btn {
    display: none;
    /* Desktop default */
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    margin-right: 16px;
    color: var(--text-main);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px;
    border-radius: 50px;
    transition: background 0.2s;
    cursor: pointer;
}

.user-profile:hover {
    background: #f1f5f9;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f472b6, #db2777);
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.user-dropdown {
    position: absolute;
    top: 75px;
    right: 20px;
    width: 220px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
}

.user-dropdown.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
}

.user-dropdown a:hover {
    background: #f8fafc;
    color: var(--primary-color);
}


/* CONTENT AREA */
.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
    scroll-behavior: smooth;
}

.view {
    display: none;
    animation: fadeIn 0.2s ease-out;
}

.view.active {
    display: block;
}

/* Animation Removed */

/* CARDS & CONTAINERS */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 24px;
    /* Default padding */
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header h3 {
    font-size: 1.15rem;
    color: var(--text-main);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

/* Data Tables - Premium Look */
.data-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.data-table thead {
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    text-align: left;
    padding: 16px;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-table td {
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-main);
    vertical-align: middle;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background: #f8fafc;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-pending {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #ffedd5;
}

.badge-confirmed {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #dbeafe;
}

.badge-shipped {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #dcfce7;
}

.badge-delivered {
    background: #faf5ff;
    color: #7e22ce;
    border: 1px solid #f3e8ff;
}

.badge-cancelled {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fee2e2;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    gap: 8px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 10px -1px rgba(99, 102, 241, 0.4);
}

.btn-outline {
    background: transparent;
    border-color: var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
}

.btn-ghost:hover {
    background: #f1f5f9;
    color: var(--text-main);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: all 0.2s;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* MODALS - Custom Premium */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.15s ease-out;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.modal-content-body {
    padding: 24px;
    overflow-y: auto;
    /* Ensure inputs have room */
    display: flex;
    flex-direction: column;
}

/* Modal Form Scroll Fix */
.modal form {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* Remove duplicate padding if form is direct child */
.modal>form {
    padding: 24px;
}

.modal-actions {
    padding: 20px 24px;
    background: #f8fafc;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.close-modal {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.close-modal:hover {
    background: #e2e8f0;
    color: var(--danger-color);
}


/* --- MOBILE RESPONSIVENESS (Media Queries) --- */

@media (max-width: 1024px) {
    .dashboard-split {
        grid-template-columns: 1fr;
        /* Stack layout on tablet/mobile */
    }
}

@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }

    /* Sidebar as Drawer */
    /* Sidebar as Drawer */
    .sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        bottom: 0;
        width: 280px;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        transition: left 0.3s ease;
    }

    .sidebar.active {
        left: 0;
    }

    /* Overlay */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 900;
    }

    .sidebar.active+.sidebar-overlay {
        display: block;
    }

    .mobile-menu-btn {
        display: block;
    }

    .top-bar {
        padding: 0 12px;
        height: 55px;
        /* Smaller height on mobile */
    }

    .mobile-logo {
        display: flex !important;
        transform: scale(0.9);
    }

    .top-bar h1 {
        font-size: 1rem;
        font-weight: 600;
        /* Smaller title */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 180px;
    }

    /* Restore Sidebar Icons and Alignment */
    .nav-item .icon {
        display: inline-block;
        margin-right: 12px;
    }

    .nav-item {
        justify-content: flex-start;
        text-align: left;
        padding-left: 16px;
        font-size: 0.95rem;
    }

    .sidebar-header .logo-icon {
        display: none;
    }

    /* Generic Card Header Fixes for Mobile */
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .card-header h3 {
        width: 100%;
        margin: 0;
    }

    .card-header button,
    .card-header .btn {
        width: 100%;
        justify-content: center;
    }

    /* Hide user details on very small screens or simplify */
    .user-profile .name,
    .user-profile .role {
        display: none;
    }

    .user-profile .avatar {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .content-area {
        padding: 16px;

    }

    /* Card Grids */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Card Headers Mobile */
    .card-header {
        flex-wrap: wrap;
        /* allow wrapping if really needed */
        gap: 10px;
        padding-bottom: 12px;
    }

    .card-header h3 {
        font-size: 1.05rem;
        /* reduce size to fit */
        margin-right: auto;
        /* keep title left */
        white-space: nowrap;
        /* try to keep on one line */
    }

    .card-header .btn,
    .card-header button {
        padding: 6px 10px;
        /* smaller buttons */
        font-size: 0.8rem;
    }

    /* Table Responsive for Mobile */
    .data-table thead {
        display: none;
    }

    /* Hide headers */
    .data-table,
    .data-table tbody,
    .data-table tr,
    .data-table td {
        display: block;
        width: 100%;
    }

    .data-table tr {
        margin-bottom: 16px;
        background: white;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-sm);
        padding: 12px;
        box-shadow: var(--shadow-sm);
    }

    .data-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
        padding: 8px 0;
        border-bottom: 1px solid #f1f5f9;
        font-size: 0.9rem;
    }

    .data-table td:last-child {
        border-bottom: none;
    }

    /* Add labels via CSS or just flex */
    /* For simple implementation, we assume row-based layout is fine or just block */
    .data-table td {
        displaY: block;
        text-align: left;
    }

    .data-table td::before {
        /* Optional: Add labels if we used data-label attrs */
        content: attr(data-label);
        font-weight: 600;
        display: block;
        color: var(--text-muted);
        font-size: 0.75rem;
        margin-bottom: 4px;
    }

    /* Adjust Modals */
    .modal {
        width: 95%;
        max-width: 95%;
        margin: 10px auto;
        height: auto;
        max-height: 85vh;
    }

    .modal-content-body,
    .modal>form {
        padding: 16px;
        /* Less padding on mobile */
    }
}

/* Toast Notification */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 3000;
}

.toast {
    background: white;
    padding: 16px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: fadeIn 0.3s ease-out;
    min-width: 300px;
}

.toast.success {
    border-color: var(--secondary-color);
}

.toast.error {
    border-color: var(--danger-color);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- MEDIA LIBRARY & PACKAGE SELECTOR ADDITIONS --- */

/* Media Library Styles */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.5rem;
    padding: 10px;
}

.media-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    display: flex;
    flex-direction: column;
}

.media-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.media-preview {
    height: 140px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.media-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.media-card:hover .media-preview img {
    transform: scale(1.05);
}

.media-info {
    padding: 12px;
}

.media-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 10px;
}

.media-actions {
    display: flex;
    gap: 8px;
}

/* Public Landing Page Product Selector */
.package-selector {
    margin-bottom: 20px;
    background: #f8fafc;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.package-label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-main);
    font-size: 1rem;
}

.package-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border: 2px solid transparent;
    margin-bottom: 8px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.package-option:hover {
    border-color: #cbd5e1;
}

.package-option:has(input:checked) {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.package-option input {
    accent-color: var(--primary-color);
    width: 18px;
    height: 18px;
}

.package-details {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- STATS CARD FIX --- */
.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.stat-card:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    opacity: 0.5;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.stat-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
    line-height: 1.1;
}

.stat-trend {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.stat-trend.positive {
    color: #10b981;
}

.stat-trend.negative {
    color: #ef4444;
}

.stat-trend.neutral {
    color: #f59e0b;
}

.stat-value.success {
    color: #10b981;
}

.stat-value.warning {
    color: #f59e0b;
}

.stat-value.danger {
    color: #ef4444;
}

.stat-desc {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* --- BUTTON & ACTION FIXES --- */
.quick-actions-section .card {
    display: flex;
    flex-direction: column;
}

.action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 15px;
}

/* Ensure full width on mobile but auto on desktop */
.full-width {
    flex: 1;
    white-space: nowrap;
    min-width: 120px;
    height: 42px;
    /* Consistent height */
}

/* Fix "View All" Button in headers */
.btn-text {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.btn-text:hover {
    background: #eff6ff;
}

/* Chart fix */
.chart-placeholder {
    height: 200px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding-top: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.chart-placeholder .bar {
    width: 8%;
    background: linear-gradient(to top, #818cf8, #6366f1);
    border-radius: 4px 4px 0 0;
    opacity: 0.8;
    transition: height 1s ease-out;
}


.package-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
}

.package-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1rem;
}

/* Product Selection Grid for Modal */
.product-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    padding: 10px;
    border-radius: 8px;
    background: #f9fafb;
}

.product-selection-item {
    position: relative;
}

.product-selection-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.product-selection-item label {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.product-selection-item label:hover {
    border-color: var(--primary-color);
}

.product-selection-item input[type="checkbox"]:checked+label {
    background: #eff6ff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color) inset;
}

.product-selection-item img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
    background: #eee;
}