/* Dashboard Redesign - Premium Styles */

.premium-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: none !important;
    padding: 20px !important;
    border-radius: 16px !important;
    backdrop-filter: none !important;
}

.revenue-summary-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}

.stat-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 4px 0;
}

.stat-value.white {
    color: #ffffff;
}

.stat-value.success {
    color: #10b981;
}

.stat-value.red {
    color: #ef4444;
    opacity: 0.9;
}

.stat-note {
    font-size: 12px;
    color: var(--text-muted);
    font-style: normal;
}

.stat-group.muted .stat-value {
    font-size: 24px;
}

.divider-line {
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 100%);
    margin: 8px 0;
}

.stat-group.highlight {
    padding: 16px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.formula-info {
    font-size: 0.75rem;
    color: #3b82f6;
    cursor: pointer;
    margin-top: 8px;
    text-decoration: underline;
    opacity: 0.8;
}

.formula-info:hover {
    opacity: 1;
}

.section-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px !important;
    text-align: left;
    border-left: 3px solid #3b82f6;
    padding-left: 10px;
}

.efficiency-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.eff-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.eff-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.eff-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.surcharge-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.sur-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}

.profit-footer-note {
    margin-top: 12px;
    font-size: 0.8rem;
    color: #3b82f6;
    cursor: pointer;
    text-align: left;
    opacity: 0.8;
}

.profit-footer-note:hover {
    opacity: 1;
}

.top-item.clickable:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
    transition: all 0.2s ease;
}

/* Light mode overrides */
body.light-mode .premium-card {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0 !important;
}

body.light-mode .stat-value.white {
    color: #1e293b;
}

body.light-mode .eff-item {
    background: #f8fafc;
    border-color: #e2e8f0;
}

body.light-mode .sur-item {
    background: #f1f5f9;
}

body.light-mode .stat-group.highlight {
    background: rgba(16, 185, 129, 0.03);
    border-color: rgba(16, 185, 129, 0.1);
}

.growth-label {
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.growth-label.up {
    color: #10b981;
}

.growth-label.down {
    color: #ef4444;
}

.growth-label.neutral {
    color: var(--text-muted);
}

/* SaaS Style Revenue Card - Refined */
.saas-revenue-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    padding: 22px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 16px !important;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.saas-box {
    width: 100%;
    max-width: 400px;
    padding: 10px 0;
    text-align: center;
}

.saas-box-inner {
    padding: 0;
    position: relative;
}

.saas-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}

.saas-value {
    font-size: 2.8rem;
    font-weight: 800;
    color: #3b82f6;
    margin: 4px 0;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.saas-box .growth-label {
    justify-content: center;
    margin-bottom: 20px;
}

.saas-divider {
    border-top: 1px solid var(--border-color);
    opacity: 0.4;
    margin: 28px 0;
    width: 100%;
    height: 0;
}

.saas-details {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.saas-row {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    color: var(--text-secondary);
}

.saas-row-val {
    color: var(--text-primary);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.saas-row-val.muted {
    color: #94a3b8; /* Grayish */
}

.saas-footer {
    margin-top: 24px;
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
    text-align: center;
    width: 100%;
}

/* SaaS Business Efficiency Redesign - List Style */
.saas-efficiency-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.saas-eff-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
}

.saas-eff-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.metric-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    opacity: 0.6;
    stroke: currentColor;
    flex-shrink: 0;
}

.saas-eff-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.saas-eff-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    min-width: 60px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.saas-eff-value.highlight-blue {
    color: #3b82f6;
}

.saas-eff-growth {
    min-width: 50px;
}

.saas-eff-growth .growth-label {
    margin-top: 0;
    font-size: 0.95rem;
    padding: 0;
    background: none;
    border: none;
    justify-content: flex-end;
}

body.light-mode .saas-revenue-card {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
}

body.light-mode .saas-value {
    color: #2563eb;
}