/* ==========================================================================
   REVENUE GRAPH COMPONENT – PREMIUM OLED BLACK EDITION
   ========================================================================== */

/* ----- Base Resets for the component ----- */
* {
    box-sizing: border-box;
}

/* ----- Graph Container ----- */
.graph-container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: 'Inter', sans-serif;
}

.graph-container h1 {
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

/* ----- Filter Bar ----- */
.filter-bar {
    display: flex;
    gap: 0.75rem;
    margin: 0 0 1.5rem 0;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent; 
    border: 1px solid #222;
    color: #888;
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.filter-btn:hover {
    background: #0a0a0a;
    border-color: #444;
    color: #fff;
    transform: translateY(-1px);
}

.filter-btn.active {
    background: #ffc1c1;
    border-color: #ffc1c1;
    color: #000;
    box-shadow: 0 0 15px rgba(255, 193, 193, 0.2);
}

/* ----- Graph Wrapper ----- */
.graph-wrapper {
    background: #000000; /* True OLED Black */
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #1f1f1f;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
    position: relative;
}

/* Subtle top glow to give depth to the true black card */
.graph-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

#revenueChart {
    width: 100%;
    height: auto;
    max-height: 400px;
    display: block;
}

/* ----- Payment List Section ----- */
.payment-list-section {
    background: #050505; /* Barely off-black to separate from main bg */
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid #1f1f1f;
}

.payment-list-section h2 {
    font-size: 1.1rem;
    margin: 0 0 1.25rem 0;
    color: #fff;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-list-section h2 small {
    font-size: 0.8rem;
    color: #666;
    font-weight: 400;
}

/* ----- Payment Grid & Scrollbar ----- */
.payment-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 0.5rem; /* space for scrollbar */
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}

.payment-grid::-webkit-scrollbar {
    width: 4px;
}
.payment-grid::-webkit-scrollbar-track {
    background: transparent;
}
.payment-grid::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}
.payment-grid::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ----- Payment Chips ----- */
.payment-chip {
    background: #000000;
    border: 1px solid #222;
    border-radius: 100px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #a0a0a0;
    transition: all 0.2s ease;
}

.payment-chip:hover {
    border-color: #444;
    transform: translateY(-1px);
}

/* Modernized method colors for high contrast */
.payment-chip.bitcoin {
    border-left: 3px solid #F7931A; /* Official BTC Orange */
}
.payment-chip.paypal {
    border-left: 3px solid #00D2FF; /* Neon Cyan/Blue for dark mode pop */
}
.payment-chip.waiting {
    opacity: 0.5;
    border-left-color: #555;
    background: repeating-linear-gradient(
        45deg,
        #000000,
        #000000 10px,
        #0a0a0a 10px,
        #0a0a0a 20px
    );
}

.payment-chip .amount {
    font-weight: 600;
    color: #ededed; 
}
.payment-chip .method-icon {
    opacity: 0.7;
}

/* ----- List Note ----- */
.list-note {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ----- Responsive Adjustments ----- */
@media screen and (max-width: 768px) {
    .filter-bar {
        gap: 0.5rem;
    }
    .filter-btn {
        flex: 1;
        text-align: center;
        padding: 0.6rem 0.5rem;
    }
    .graph-wrapper, .payment-list-section {
        padding: 1rem;
    }
    .payment-grid {
        max-height: 250px;
    }
}