/* dashboard.css - Modern Dashboard Styles */

.cloud-dashboard {
    max-width: 1200px;
    margin: 2rem auto 4rem;
    padding: 0 1.25rem;
    animation: fadeIn 0.5s ease;
}

/* Dashboard Header */
.dashboard-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 2rem;
    border-radius: 1rem;
    margin: -1rem -1.25rem 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
    position: relative;
    overflow: hidden;
}

.dashboard-header::after {
    content: '';
    position: absolute;
    top: 0;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

.dashboard-header h1 {
    margin: 0;
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    position: relative;
    z-index: 1;
}

.header-actions {
    float: right;
    margin-top: -2.5rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.user-chip {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-chip::before {
    content: '👤';
}

.logout-button {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.logout-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    gap: 0.5rem;
    padding: 0.375rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.tab-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-button:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.tab-button.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
}

.tab-icon {
    font-size: 1.125rem;
}

.tab-content {
    margin-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.tab-panel {
    animation: fadeIn 0.3s ease;
}

.tab-panel.hidden {
    display: none;
}

/* Cards/Metrics */
.card, .kpi, .metrics-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.card:hover, .kpi:hover, .metrics-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.card::before, .kpi::before, .metrics-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--primary-light));
    opacity: 0;
    transition: opacity 0.2s;
}

.card:hover::before, .kpi:hover::before, .metrics-card:hover::before {
    opacity: 1;
}

.kpi-title, .metrics-title, .card-header h4 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.kpi-value, .metric-value .value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 0.5rem;
}

.metric-value {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.metric-value .unit {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 0.5rem;
    font-size: 1.25rem;
}

/* Grid Layouts */
.kpi-grid, .metrics-grid {
    display: grid;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.metrics-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.kpi-grid {
    grid-template-columns: repeat(12, 1fr);
}

.kpi-col-4 {
    grid-column: span 4;
}

.kpi-col-6 {
    grid-column: span 6;
}

.kpi-col-12 {
    grid-column: span 12;
}

/* Sections */
.providers-section, .costs-section {
    background: white;
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-top: 1.5rem;
}

.costs-section h3, .provider-tab h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.costs-section h3::before {
    content: '💰';
    font-size: 1.5rem;
}

/* Tables */
.costs-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.costs-table thead {
    background: var(--bg-tertiary);
}

.costs-table th {
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg-tertiary);
}

.costs-table th:last-child {
    text-align: right;
}

.costs-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}

.costs-table tbody tr:hover {
    background: var(--bg-tertiary);
}

.costs-table td {
    padding: 0.875rem 0.75rem;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.cost-column {
    text-align: right;
    font-weight: 600;
    color: var(--primary);
    font-size: 1rem;
}

.total-row {
    background: var(--bg-tertiary);
    font-weight: 700;
    border-top: 2px solid var(--border);
}

.total-row td {
    padding: 1rem 0.75rem;
    font-size: 1rem;
}

/* Chart Container */
.piechart-container {
    height: 300px;
    margin: 1.5rem 0;
}

/* Loading/Error States */
.loading, .error, .no-data {
    padding: 3rem;
    text-align: center;
    background: white;
    border: 1px solid var(--border);
    border-radius: 1rem;
    margin: 1.5rem 0;
}

.loading {
    color: var(--text-muted);
}

.loading-spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.error {
    background: rgba(239, 68, 68, 0.05);
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.2);
}

.error::before {
    content: '⚠️';
    display: block;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.no-data {
    color: var(--text-muted);
    font-style: italic;
}

/* Status Indicators */
.status-healthy {
    color: var(--success);
}

.status-warning {
    color: var(--warning);
}

.status-error {
    color: var(--danger);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 900px) {
    .kpi-col-4, .kpi-col-6 {
        grid-column: span 12;
    }

    .header-actions {
        float: none;
        margin-top: 1rem;
        justify-content: space-between;
    }

    .dashboard-header h1 {
        font-size: 1.5rem;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .cloud-dashboard {
        padding: 0 1rem;
        margin: 1rem auto 3rem;
    }

    .dashboard-header {
        padding: 1.5rem;
        margin: -0.5rem -1rem 1rem;
    }

    .tab-navigation {
        gap: 0.25rem;
        padding: 0.25rem;
    }

    .tab-button {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }

    .tab-icon {
        display: none;
    }

    .costs-table {
        font-size: 0.8125rem;
    }

    .costs-table td, .costs-table th {
        padding: 0.625rem 0.5rem;
    }
}

.alert-badge {
    background: var(--danger);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    margin-left: 8px;
}

.filter-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.filter-buttons .btn {
    padding: 6px 12px;
    font-size: 0.75rem;
    text-transform: capitalize;
}

.filter-buttons .btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.alerts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alert-item {
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border-left: 3px solid var(--border);
}

.alert-item.unread {
    background: rgba(79, 70, 229, 0.05);
    border-left-color: var(--primary);
}

.alert-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 0.75rem;
}

.alert-severity {
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.65rem;
}

.alert-severity.status-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.alert-severity.status-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.alert-severity.status-healthy {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.alert-provider {
    color: var(--text-muted);
}

.alert-time {
    color: var(--text-muted);
    margin-left: auto;
}

.alert-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.alert-message {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.anomaly-count {
    background: var(--danger);
    color: white;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    margin-left: 8px;
    font-weight: 500;
}

.anomalies-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.anomaly-item {
    padding: 14px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border-left: 3px solid var(--border);
}

.anomaly-item.severity-critical {
    border-left-color: var(--danger);
}

.anomaly-item.severity-high {
    border-left-color: var(--warning);
}

.anomaly-item.severity-medium {
    border-left-color: var(--accent);
}

.anomaly-item.severity-low {
    border-left-color: var(--success);
}

.anomaly-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.anomaly-provider {
    background: var(--bg-tertiary);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
}

.anomaly-service {
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.anomaly-severity {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.anomaly-severity.status-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.anomaly-severity.status-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.anomaly-severity.status-healthy {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.anomaly-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.anomaly-stats .stat {
    display: flex;
    flex-direction: column;
}

.anomaly-stats .stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.anomaly-stats .stat-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.anomaly-stats .stat-value.highlight {
    color: var(--warning);
}

.anomaly-recommendation {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: rgba(79, 70, 229, 0.05);
    padding: 8px 10px;
    border-radius: 6px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.budgets-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.budget-card .card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.budget-card .card-header h4 {
    flex: 1;
    margin: 0;
}

.view-toggle {
    display: flex;
    background: var(--bg-tertiary);
    border-radius: 6px;
    padding: 3px;
}

.toggle-btn {
    padding: 6px 14px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.toggle-btn.active {
    background: var(--primary);
    color: white;
}

.toggle-btn:hover:not(.active) {
    background: var(--bg-secondary);
}

.budget-summary {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.budget-total {
    flex: 2;
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 16px;
}

.budget-total-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.budget-total-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.budget-progress {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.budget-progress .progress-bar {
    height: 100%;
    transition: width 0.3s;
}

.budget-total-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

.budget-total-details .spent {
    color: var(--warning);
}

.budget-total-details .remaining {
    color: var(--success);
}

.budget-stats {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.budget-stat {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.budget-stat .stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
}

.budget-stat .stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.budgets-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 350px;
    overflow-y: auto;
}

.budget-item {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 16px;
    border: 1px solid transparent;
}

.budget-item.at-risk {
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.05);
}

.budget-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.budget-icon {
    font-size: 1.25rem;
}

.budget-name-section {
    flex: 1;
}

.budget-name {
    font-weight: 600;
    color: var(--text-primary);
    display: block;
}

.budget-category {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.budget-status {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.budget-amounts {
    display: flex;
    gap: 24px;
    margin-bottom: 12px;
}

.amount {
    display: flex;
    flex-direction: column;
}

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

.amount-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.amount-value.spent {
    color: var(--warning);
}

.amount-value.remaining {
    color: var(--success);
}

.amount-value.negative {
    color: var(--danger);
}

.budget-item-progress .progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.progress-track {
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    transition: width 0.3s;
}

.forecast-card .card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.forecast-card .card-header h4 {
    flex: 1;
    margin: 0;
}

.provider-select {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.85rem;
    background: white;
}

.forecast-stats {
    display: flex;
    gap: 32px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 20px;
}

.forecast-stat {
    display: flex;
    flex-direction: column;
}

.forecast-stat .stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.forecast-stat .stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.forecast-stat .stat-value.projected {
    color: #8B5CF6;
}

.forecast-stat .stat-value.trend-increasing {
    color: var(--warning);
}

.forecast-stat .stat-value.trend-decreasing {
    color: var(--success);
}

.forecast-stat .stat-value.trend-stable {
    color: var(--primary);
}

.chart-container {
    margin-bottom: 12px;
}

.chart-tooltip {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    box-shadow: var(--shadow);
}

.tooltip-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

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

.tooltip-type {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-dot.actual {
    background: #4F46E5;
}

.legend-dot.forecast {
    background: #8B5CF6;
}

.insights-top-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.insights-panel {
    min-height: 0;
}

.insights-panel .card {
    height: 100%;
    max-height: 450px;
    overflow-y: auto;
}

.insights-bottom-row .card {
    max-height: 400px;
    overflow-y: auto;
}

@media (max-width: 1024px) {
    .insights-top-row {
        grid-template-columns: 1fr;
    }
}

.savings-badge {
    background: var(--success);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: auto;
}

.savings-summary {
    display: flex;
    gap: 24px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(79, 70, 229, 0.05));
    border-radius: 8px;
    margin-bottom: 16px;
}

.savings-stat {
    display: flex;
    flex-direction: column;
}

.savings-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--success);
}

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

.filter-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.filter-buttons .btn {
    padding: 6px 12px;
    font-size: 0.75rem;
}

.filter-buttons .btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.rec-item {
    padding: 14px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.rec-item:hover {
    border-color: var(--primary);
}

.rec-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.rec-provider {
    font-size: 1.2rem;
}

.rec-title-section {
    flex: 1;
}

.rec-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.rec-category {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.rec-savings {
    text-align: right;
}

.rec-savings-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--success);
}

.rec-savings-period {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.rec-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.rec-meta {
    display: flex;
    gap: 12px;
    font-size: 0.75rem;
}

.rec-effort, .rec-impact {
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    text-transform: capitalize;
}

.rec-effort.status-healthy {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.rec-effort.status-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.rec-effort.status-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.services-panel {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    margin-top: 1.5rem;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.panel-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #1e293b;
}

.provider-select {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    width: auto;
}

.services-summary {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding: 20px 24px;
    background: #f8fafc;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.summary-stat {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-stat:nth-child(2) {
    align-items: center;
}

.summary-stat:nth-child(3) {
    align-items: flex-end;
}

.summary-stat .stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
}

.summary-stat .stat-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.categories-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-card {
    background: #f8fafc;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.category-card.expanded {
    border-color: #3b82f6;
}

.category-header {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
}

.category-header:hover {
    background: #f1f5f9;
}

.category-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.category-icon {
    font-size: 1.4rem;
}

.category-name {
    margin: 0;
    font-size: 0.95rem;
    color: #1e293b;
    font-weight: 500;
}

.category-count {
    font-size: 0.75rem;
    color: #64748b;
}

.category-cost {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-right: 16px;
}

.cost-value {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.cost-percent {
    font-size: 0.75rem;
    color: #64748b;
}

.expand-icon {
    color: #64748b;
    font-size: 0.7rem;
}

.category-progress {
    height: 3px;
    background: #e2e8f0;
}

.progress-fill {
    height: 100%;
}

.services-list {
    padding: 12px 16px;
    background: white;
    border-top: 1px solid #e2e8f0;
    max-height: 300px;
    overflow-y: auto;
}

.services-header {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
}

.service-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.service-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-name {
    font-size: 0.85rem;
    color: #334155;
}

.service-cost {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.services-more {
    padding: 10px 0;
    text-align: center;
    font-size: 0.8rem;
    color: #3b82f6;
    cursor: pointer;
    font-weight: 500;
}

.services-more:hover {
    color: #2563eb;
    text-decoration: underline;
}