/* Oneda Top Studio - Custom CSS Styling */

:root {
    --glass-bg: rgba(17, 24, 39, 0.8);
    --glass-border: rgba(255, 255, 255, 0.08);
}

body {
    background-color: #070c18;
    color: #e2e8f0;
}

/* Glassmorphism Classes */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
}

.glass-card {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-4px);
    background: rgba(23, 37, 84, 0.55);
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.6), 0 0 25px 2px rgba(99, 102, 241, 0.2);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    background: #0b1120;
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* View switcher tab active state */
.view-tab.active {
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

/* Price Pill active state */
.price-pill.active {
    background-color: #059669 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

/* Modal animation */
.modal.open {
    opacity: 1;
    pointer-events: auto;
}

.modal.open .modal-content {
    transform: scale(1);
}

.modal-content {
    transform: scale(0.95);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Markup & Margin badges */
.badge-margin-high {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-margin-mid {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-margin-low {
    background: rgba(244, 63, 94, 0.15);
    color: #fb7185;
    border: 1px solid rgba(244, 63, 94, 0.3);
}

.badge-no-price {
    background: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

/* Image container */
.img-container {
    overflow: hidden;
    position: relative;
}

/* Print Styles with Clean Page Breaks for Price Groups */
@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
    }

    header, #kpi-container, section:not(.price-group-section), button, #pagination-buttons, #grid-size-controls, .cat-pill, .price-pill {
        display: none !important;
    }

    .glass, .glass-card, .price-group-section {
        background: #ffffff !important;
        border: 1px solid #cccccc !important;
        box-shadow: none !important;
        color: #000000 !important;
        page-break-after: always;
    }

    .price-group-section h2 {
        color: #000000 !important;
    }

    .img-container {
        background: #f8fafc !important;
    }

    img {
        max-height: 250px !important;
    }

    #view-cards, #view-grouped-price, #view-table {
        display: block !important;
    }
}
