/* 
 * Scoped Styles for Meesho Seller Profit & Settlement Calculator
 * Theme colors: Meesho Pink (#e72c7a) and Indigo Accent (#4f46e5)
 */

.meesho-calc-container {
    --meesho-pink: #e72c7a;
    --meesho-pink-hover: #c81f65;
    --meesho-gradient: linear-gradient(135deg, #e72c7a 0%, #6366f1 100%);
    --meesho-light-pink: rgba(231, 44, 122, 0.1);
    --meesho-border-pink: rgba(231, 44, 122, 0.2);
}

/* Scoped Highlight Payout Card */
.meesho-settlement-card {
    background: var(--meesho-gradient, linear-gradient(135deg, #e72c7a 0%, #6366f1 100%));
    color: #ffffff;
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
}

.meesho-settlement-card::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

/* Scoped Profit / Loss States */
.meesho-text-profit {
    color: #0ea5e9 !important;
    font-weight: 700;
}

.meesho-text-loss {
    color: #ef4444 !important;
    font-weight: 700;
}

.meesho-bg-profit {
    background-color: rgba(6, 182, 212, 0.08) !important;
    border: 1px solid rgba(6, 182, 212, 0.18) !important;
}

.meesho-bg-loss {
    background-color: rgba(239, 68, 68, 0.08) !important;
    border: 1px solid rgba(239, 68, 68, 0.15) !important;
}

/* Solver Custom Tab Controls */
.meesho-nav-tabs-custom .nav-link {
    border: none;
    color: #475569;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    padding: 8px 16px;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.meesho-nav-tabs-custom .nav-link.active {
    color: var(--meesho-pink, #e72c7a);
    border-bottom-color: var(--meesho-pink, #e72c7a);
    background: transparent;
}

/* Regional Scenario Table Scopes */
.meesho-table-scenario th, .meesho-table-scenario td {
    font-size: 13px;
    text-align: center;
    vertical-align: middle;
}

/* Sticky Right Results Panel Layout */
.meesho-sticky-results {
    position: sticky;
    top: 90px;
}

/* Scoped Mobile Sticky Payout Calculator Trigger */
.meesho-mobile-calc-btn {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 998;
    border-radius: 0;
    padding: 14px;
    display: none;
    background-color: var(--meesho-pink, #e72c7a) !important;
    border-color: var(--meesho-pink, #e72c7a) !important;
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.meesho-mobile-calc-btn:hover, .meesho-mobile-calc-btn:focus, .meesho-mobile-calc-btn:active {
    background-color: var(--meesho-pink-hover, #c81f65) !important;
    border-color: var(--meesho-pink-hover, #c81f65) !important;
}

/* Small Warning Badges and Font Helpers */
.meesho-x-small {
    font-size: 0.75rem;
}

@media (max-width: 991px) {
    .meesho-sticky-results {
        position: static;
    }
    .meesho-mobile-calc-btn {
        display: block;
    }
    body {
        padding-bottom: 60px; /* Offset for sticky bottom button */
    }
}
