/* Scoped Styles for Meesho Payments & Profit Analyzer Tool */

.meesho-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Upload zone */
.meesho-upload-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    background-color: #ffffff;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.meesho-upload-zone:hover, .meesho-upload-zone.dragover {
    border-color: #ff3f6c; /* Meesho pink highlight color */
    background-color: #fff5f7;
}

.meesho-upload-icon {
    font-size: 48px;
    color: #64748b;
    margin-bottom: 12px;
}

.meesho-file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Progress bar */
.meesho-progress-container {
    display: none;
    margin-top: 15px;
}

/* KPI Cards */
.meesho-kpi-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.meesho-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

.meesho-kpi-title {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.meesho-kpi-value {
    font-size: 1.45rem;
    font-weight: 700;
    color: #0f172a;
}

.meesho-kpi-trend {
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 4px;
}

.meesho-kpi-trend.positive {
    color: #10b981;
}

.meesho-kpi-trend.negative {
    color: #ef4444;
}

/* Warning cards */
.meesho-warning-card {
    border-left: 4px solid #ef4444;
    background-color: #fef2f2;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.meesho-warning-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #991b1b;
    margin-bottom: 2px;
}

.meesho-warning-desc {
    font-size: 0.8rem;
    color: #7f1d1d;
}

.meesho-warning-risk {
    display: inline-block;
    padding: 2px 6px;
    font-size: 0.72rem;
    font-weight: bold;
    border-radius: 4px;
    margin-top: 4px;
}

.meesho-risk-high {
    background-color: #fee2e2;
    color: #ef4444;
}

.meesho-risk-medium {
    background-color: #fef3c7;
    color: #d97706;
}

/* Insight Cards */
.meesho-insight-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}

.meesho-insight-text {
    font-size: 0.9rem;
    color: #334155;
    margin-bottom: 0;
    font-weight: 500;
}

/* Table styles */
.meesho-table-wrapper {
    overflow-x: auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.meesho-table {
    width: 100%;
    margin-bottom: 0;
    font-size: 0.88rem;
}

.meesho-table th {
    background-color: #f8fafc;
    font-weight: 600;
    color: #475569;
    padding: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.meesho-table td {
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

/* Tab control overrides */
.meesho-nav-tabs {
    border-bottom: 2px solid #e2e8f0;
}

.meesho-nav-link {
    font-weight: 600;
    color: #64748b;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    padding: 12px 18px;
    transition: all 0.2s ease;
}

.meesho-nav-link:hover {
    color: #ff3f6c;
}

.meesho-nav-link.active {
    color: #ff3f6c !important;
    border-bottom: 2px solid #ff3f6c !important;
    background: transparent !important;
}

/* Collapsible guide */
.meesho-guide-accordion {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
}

.meesho-guide-header {
    background-color: #f8fafc;
    padding: 16px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.meesho-guide-accordion summary::-webkit-details-marker {
    display: none;
}

.meesho-guide-accordion summary {
    list-style: none;
}

.meesho-guide-accordion[open] .guide-chevron {
    transform: rotate(180deg);
}

.guide-chevron {
    transition: transform 0.2s ease;
}

.meesho-guide-body {
    padding: 20px;
    border-top: 1px solid #e2e8f0;
}

/* Charts grid */
.meesho-chart-container {
    position: relative;
    height: 280px;
    width: 100%;
    margin-bottom: 15px;
}

.meesho-cost-input {
    width: 90px;
    padding: 4px 8px;
    font-size: 0.85rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    text-align: right;
}

.meesho-cost-input:focus {
    border-color: #ff3f6c;
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 63, 108, 0.2);
}

.bg-light-pink {
    background-color: #fff0f3 !important;
}

.bg-light-green {
    background-color: #f0fdf4 !important;
}

.text-pink {
    color: #ff3f6c !important;
}

/* Catalog Health Widget */
.catalog-health-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    display: inline-block;
}

.health-healthy {
    background-color: #d1fae5;
    color: #065f46;
}

.health-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.health-poor {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Tab contents styling */
.meesho-pane-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 8px;
}

/* Business Health Score Gauge & Layout */
.health-score-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.health-score-circle-container {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 15px auto;
}

.health-score-circle-svg {
    transform: rotate(-90deg);
}

.health-score-circle-bg {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 12px;
}

.health-score-circle-bar {
    fill: none;
    stroke-width: 12px;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.6s ease;
}

.health-score-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.health-score-number {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.health-score-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #64748b;
    margin-top: 2px;
}

.health-score-status-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 20px;
    margin-top: 5px;
}

/* Status colors */
.health-excellent { stroke: #10b981; color: #10b981; background-color: #d1fae5; }
.health-good { stroke: #3b82f6; color: #3b82f6; background-color: #dbeafe; }
.health-average { stroke: #f59e0b; color: #d97706; background-color: #fef3c7; }
.health-critical { stroke: #ef4444; color: #ef4444; background-color: #fee2e2; }

.recommendation-list {
    margin-bottom: 0;
    padding-left: 1.2rem;
    font-size: 0.85rem;
}

.recommendation-list li {
    margin-bottom: 8px;
    color: #475569;
}

/* Monthly Comparison Layout */
.meesho-compare-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    padding: 24px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.meesho-compare-zone:hover, .meesho-compare-zone.dragover {
    border-color: #4f46e5;
    background-color: #f5f3ff;
}

.meesho-compare-file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.meesho-compare-zone-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 8px;
    color: #1e293b;
}

.meesho-compare-icon {
    font-size: 32px;
    color: #64748b;
}

.meesho-growth-indicator {
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.growth-positive {
    background-color: #d1fae5;
    color: #065f46;
}

.growth-negative {
    background-color: #fee2e2;
    color: #991b1b;
}

.growth-neutral {
    background-color: #f1f5f9;
    color: #475569;
}

/* Warning alert card border revisions */
.meesho-warning-card.risk-high {
    border-left: 4px solid #ef4444;
    background-color: #fef2f2;
}
.meesho-warning-card.risk-medium {
    border-left: 4px solid #f59e0b;
    background-color: #fffbeb;
}
.meesho-warning-card.risk-low {
    border-left: 4px solid #94a3b8;
    background-color: #f8fafc;
}

