/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #0E0E0E;
    color: #FFFFFF;
    line-height: 1.6;
    font-weight: 400;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background: #0E0E0E;
    padding: 1rem 0;
    border-bottom: 1px solid #1A1A1A;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: #B0B0B0;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #FFFFFF;
}

.login-btn {
    background: transparent;
    border: 1px solid #333;
    color: #FFFFFF;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: #1A1A1A;
    border-color: #444;
}

/* Landing Page */
.landing {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 0;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #B0B0B0;
    margin-bottom: 3rem;
    line-height: 1.5;
}

.input-section {
    margin-bottom: 4rem;
}

.input-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #666;
    pointer-events: none;
    z-index: 1;
}

.vapi-input {
    width: 100%;
    padding: 16px 16px 16px 50px;
    background: #1A1A1A;
    border: 1px solid #333;
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.vapi-input:focus {
    border-color: #FF7043;
    box-shadow: 0 0 0 3px rgba(255, 112, 67, 0.1);
}

.vapi-input::placeholder {
    color: #666;
}

.connect-btn {
    width: 100%;
    background: linear-gradient(135deg, #FF7043 0%, #FF5722 100%);
    color: white;
    border: none;
    padding: 16px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.connect-btn:hover:not(.disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 112, 67, 0.3);
}

.connect-btn.disabled {
    background: #333;
    cursor: not-allowed;
    opacity: 0.6;
}

.connect-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

.note {
    color: #B0B0B0;
    font-size: 0.9rem;
}

/* Test Keys Section */
.test-keys-section {
    margin: 2rem 0;
}

.test-keys-label {
    font-size: 0.9rem;
    color: #B0B0B0;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 500;
}

.test-keys-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.test-key-btn {
    background: #1A1A1A;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1rem 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
}

.test-key-btn:hover {
    background: #252525;
    border-color: #FF7043;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 112, 67, 0.2);
}

.test-key-icon {
    font-size: 1.5rem;
    display: block;
}

.test-key-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #FFFFFF;
    display: block;
}

.test-key-desc {
    font-size: 0.75rem;
    color: #888;
    display: block;
}

.trusted-section {
    text-align: center;
}

.trusted-text {
    color: #B0B0B0;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.avatars {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: -8px;
    margin-bottom: 0.5rem;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #0E0E0E;
    margin-left: -8px;
}

.avatar-1 {
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
}

.avatar-2 {
    background: linear-gradient(45deg, #4ECDC4, #45B7D1);
}

.avatar-3 {
    background: linear-gradient(45deg, #45B7D1, #96CEB4);
}

.avatar-4 {
    background: linear-gradient(45deg, #96CEB4, #FFEAA7);
}

.avatar-5 {
    background: linear-gradient(45deg, #FFEAA7, #DDA0DD);
}

.avatar-6 {
    background: linear-gradient(45deg, #DDA0DD, #98D8C8);
}

.avatar-count {
    color: #B0B0B0;
    font-weight: 600;
    margin-left: 8px;
}

.users-count {
    color: #B0B0B0;
    font-size: 0.9rem;
}

.users-count strong {
    color: #FFFFFF;
}

/* Loading Section */
.loading-section {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #333;
    border-top: 4px solid #FF7043;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

.loading-text {
    font-size: 1.1rem;
    color: #B0B0B0;
    font-weight: 500;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Dashboard */
.dashboard {
    padding: 2rem 0;
    min-height: calc(100vh - 80px);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #333;
}

.back-btn {
    background: transparent;
    border: 1px solid #333;
    color: #B0B0B0;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.back-btn:hover {
    background: #1A1A1A;
    border-color: #FF7043;
    color: #FFFFFF;
}

.dashboard-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
}

.cost-banner {
    background: linear-gradient(135deg, #1A1A1A 0%, #2A2A2A 100%);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #333;
}

.banner-title {
    font-size: 2rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
}

.overspend-amount {
    color: #FF7043;
}

.cost-breakdown-summary {
    display: flex;
    gap: 3rem;
    margin-bottom: 2rem;
}

.cost-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cost-label {
    color: #B0B0B0;
    font-size: 0.9rem;
}

.cost-current {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FF7043;
}

.cost-optimized {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4CAF50;
}

.switch-btn {
    background: linear-gradient(135deg, #FF7043 0%, #FF5722 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.switch-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 112, 67, 0.3);
}

.chart-section,
.breakdown-section {
    background: #1A1A1A;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #333;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
}

.chart-container {
    background: #0E0E0E;
    border-radius: 8px;
    padding: 1rem;
}

.breakdown-bars {
    margin-bottom: 2rem;
}

.breakdown-item {
    margin-bottom: 1.5rem;
}

.breakdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.provider-name {
    font-weight: 600;
    color: #FFFFFF;
}

.provider-cost {
    font-weight: 700;
    color: #FFFFFF;
}

.provider-percentage {
    color: #B0B0B0;
    font-size: 0.9rem;
}

.breakdown-bar {
    height: 8px;
    background: #333;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s ease;
}

.total-cost {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #333;
}

.total-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: #FFFFFF;
}

.total-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FF7043;
}

/* Hero Savings Dashboard */
.hero-savings {
    background: linear-gradient(135deg, #1A1A1A 0%, #252525 100%);
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 3rem;
    border: 1px solid #333;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.savings-card {
    text-align: center;
    margin-bottom: 3rem;
}

.savings-header {
    margin-bottom: 1rem;
}

.savings-label {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #B0B0B0;
    text-transform: uppercase;
}

.savings-amount-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.currency-symbol {
    font-size: 3rem;
    font-weight: 700;
    color: #4CAF50;
    opacity: 0.8;
}

.savings-amount {
    font-size: 5.5rem;
    font-weight: 800;
    line-height: 1;
    color: #4CAF50;
    letter-spacing: -2px;
    transition: all 0.3s ease;
}

.savings-period {
    font-size: 1.5rem;
    font-weight: 600;
    color: #B0B0B0;
    align-self: flex-end;
    margin-bottom: 0.5rem;
}

.savings-percentage {
    font-size: 1.2rem;
    color: #B0B0B0;
    font-weight: 500;
}

.percentage-value {
    color: #4CAF50;
    font-weight: 700;
}

.cost-comparison {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

.comparison-item {
    text-align: center;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-width: 200px;
}

.comparison-item.current {
    background: rgba(255, 112, 67, 0.1);
    border: 1px solid rgba(255, 112, 67, 0.3);
}

.comparison-item.optimized {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.comparison-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.comparison-label {
    display: block;
    font-size: 0.85rem;
    color: #B0B0B0;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.comparison-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.comparison-currency {
    font-size: 1.5rem;
    font-weight: 600;
    opacity: 0.7;
}

.comparison-value {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.comparison-item.current .comparison-currency,
.comparison-item.current .comparison-value {
    color: #FF7043;
}

.comparison-item.optimized .comparison-currency,
.comparison-item.optimized .comparison-value {
    color: #4CAF50;
}

.comparison-arrow {
    font-size: 2.5rem;
    color: #666;
    font-weight: 300;
}

/* Service Optimization Cards */
.optimization-section {
    margin-bottom: 3rem;
}

.optimization-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.optimization-card {
    background: #1A1A1A;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #333;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.optimization-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF7043, #4CAF50);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.optimization-card:hover {
    transform: translateY(-4px);
    border-color: #FF7043;
    box-shadow: 0 8px 30px rgba(255, 112, 67, 0.2);
}

.optimization-card:hover::before {
    transform: scaleX(1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.card-icon {
    font-size: 2rem;
    filter: grayscale(0.3);
}

.savings-badge {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
}

.card-subtitle {
    font-size: 0.9rem;
    color: #B0B0B0;
    margin-bottom: 1.5rem;
}

.provider-comparison {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.provider-box {
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.provider-box.current {
    background: rgba(255, 112, 67, 0.1);
    border: 1px solid rgba(255, 112, 67, 0.3);
}

.provider-box.recommended {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.provider-name-small {
    display: block;
    font-size: 0.75rem;
    color: #B0B0B0;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.provider-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 0.25rem;
}

.provider-cost-small {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
}

.provider-box.current .provider-cost-small {
    color: #FF7043;
}

.provider-box.recommended .provider-cost-small {
    color: #4CAF50;
}

.provider-usage {
    display: block;
    font-size: 0.75rem;
    color: #888;
    margin-top: 0.25rem;
}

.arrow-icon {
    font-size: 1.5rem;
    color: #666;
}

.card-insight {
    background: rgba(76, 175, 80, 0.05);
    border-left: 3px solid #4CAF50;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #B0B0B0;
    margin-bottom: 1rem;
}

.card-actions {
    display: flex;
    gap: 0.75rem;
}

.card-btn {
    flex: 1;
    padding: 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.card-btn.primary {
    background: linear-gradient(135deg, #FF7043, #FF5722);
    color: white;
}

.card-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 112, 67, 0.4);
}

.card-btn.secondary {
    background: transparent;
    border: 1px solid #333;
    color: #B0B0B0;
}

.card-btn.secondary:hover {
    background: #252525;
    border-color: #444;
    color: #FFFFFF;
}

/* Optimization Checklist */
.checklist-section {
    background: #1A1A1A;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #333;
}

.checklist-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checklist-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #2A2A2A;
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.checklist-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #FF7043;
    transform: translateX(4px);
}

.checklist-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.checklist-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid #444;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checklist-item:hover .checkbox {
    border-color: #FF7043;
}

.checklist-title {
    font-size: 1rem;
    font-weight: 600;
    color: #FFFFFF;
}

.impact-badge {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.checklist-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 0.75rem;
    padding-left: 40px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.meta-label {
    color: #888;
}

.meta-value {
    color: #FFFFFF;
    font-weight: 600;
}

.meta-value.low {
    color: #4CAF50;
}

.meta-value.medium {
    color: #FFA726;
}

.meta-value.high {
    color: #FF7043;
}

.checklist-description {
    color: #B0B0B0;
    font-size: 0.9rem;
    line-height: 1.5;
    padding-left: 40px;
}

/* Enhanced Chart Styling */
.chart-container {
    position: relative;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 1rem;
}

#costChart {
    max-width: 100%;
    height: auto !important;
}

/* Smooth Animations */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-count {
    animation: countUp 0.6s ease-out;
}

.animate-slide {
    animation: slideIn 0.4s ease-out;
}

.animate-fade {
    animation: fadeIn 0.5s ease-out;
}

/* Utility Classes */
.hidden {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .nav {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.85rem;
    }

    .cost-breakdown-summary {
        flex-direction: column;
        gap: 1rem;
    }

    .breakdown-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .container {
        padding: 0 16px;
    }

    .banner-title {
        font-size: 1.5rem;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .dashboard-title {
        font-size: 1.4rem;
    }
}

/* Usag
e Statistics Table */
.stats-section {
    margin-bottom: 2rem;
}

.stats-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    min-height: 160px;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.stat-label {
    font-size: 0.75rem;
    color: #888;
    margin: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
}

.stat-value {
    font-size: 3rem;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1;
    margin: 0;
    width: 100%;
}

.stat-value.loading {
    color: #FF7043;
    animation: pulse 1.5s ease-in-out infinite;
}

.stat-value.error {
    color: #FF5722;
    font-size: 1rem;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

/* Cost Comparison Container */
.cost-comparison-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
}

.cost-comparison-box {
    flex: 1;
    max-width: 300px;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cost-comparison-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.current-cost-box {
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.15) 0%, rgba(255, 112, 67, 0.1) 100%);
    border: 2px solid rgba(255, 87, 34, 0.3);
}

.current-cost-box:hover {
    border-color: rgba(255, 87, 34, 0.5);
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.2) 0%, rgba(255, 112, 67, 0.15) 100%);
}

.current-cost-box .stat-label {
    color: #FFFFFF;
}

.current-cost-box .stat-value {
    color: #FFFFFF;
}

.optimized-cost-box {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15) 0%, rgba(102, 187, 106, 0.1) 100%);
    border: 2px solid rgba(76, 175, 80, 0.3);
}

.optimized-cost-box:hover {
    border-color: rgba(76, 175, 80, 0.5);
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2) 0%, rgba(102, 187, 106, 0.15) 100%);
}

.optimized-cost-box .stat-label {
    color: #FFFFFF;
}

.optimized-cost-box .stat-value {
    color: #FFFFFF;
}

.cost-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cost-arrow .arrow-icon {
    font-size: 2rem;
    color: #FF7043;
    font-weight: 700;
    animation: pulse-arrow 2s ease-in-out infinite;
}

@keyframes pulse-arrow {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stats-table {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .stat-item {
        padding: 1rem;
    }

    .stat-value {
        font-size: 1.4rem;
    }

    .cost-comparison-container {
        flex-direction: column;
        gap: 1rem;
    }

    .cost-comparison-box {
        max-width: 100%;
        width: 100%;
    }

    .cost-arrow .arrow-icon {
        transform: rotate(90deg);
        font-size: 1.5rem;
    }

    @keyframes pulse-arrow {

        0%,
        100% {
            transform: rotate(90deg) scale(1);
            opacity: 1;
        }

        50% {
            transform: rotate(90deg) scale(1.1);
            opacity: 0.8;
        }
    }
}

@media (max-width: 480px) {
    .stats-table {
        grid-template-columns: 1fr;
    }
}

/* Manual
 Input Notification */
.manual-input-notification {
    background: linear-gradient(135deg, #FF7043, #FF5722);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
    color: white;
    position: relative;
}

.notification-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.notification-content p {
    margin: 0 0 1rem 0;
    opacity: 0.9;
    line-height: 1.4;
}

.manual-input-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.manual-input-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.close-btn:hover {
    opacity: 1;
}

/* Manual Input Modal */
.manual-input-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-content {
    background: #1a1a1a;
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: #888;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.modal-content h3 {
    margin: 0 0 1rem 0;
    color: #FFFFFF;
    font-size: 1.4rem;
}

.modal-content p {
    margin: 0 0 1.5rem 0;
    color: #B0B0B0;
    line-height: 1.4;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #FFFFFF;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #FFFFFF;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #FF7043;
}

.input-group input::placeholder {
    color: #666;
}

.form-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.submit-btn {
    flex: 1;
    background: linear-gradient(135deg, #FF7043, #FF5722);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 112, 67, 0.3);
}

.cancel-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Success Message */
.success-message {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    z-index: 1001;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }

    .form-buttons {
        flex-direction: column;
    }

    .success-message {
        top: 1rem;
        right: 1rem;
        left: 1rem;
    }
}


/* Authentication Pages */
.auth-section {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
}

.auth-container {
    width: 100%;
    max-width: 480px;
}

.auth-card {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(255, 112, 67, 0.2);
    border-radius: 16px;
    padding: 48px;
    backdrop-filter: blur(10px);
}

.auth-title {
    font-size: 32px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 12px;
    text-align: center;
}

.auth-subtitle {
    font-size: 16px;
    color: #B0B0B0;
    margin-bottom: 32px;
    text-align: center;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
}

.form-input {
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #FF7043;
    background: rgba(255, 255, 255, 0.08);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-hint {
    font-size: 13px;
    color: #808080;
    margin: 0;
}

.error-message {
    padding: 12px 16px;
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    border-radius: 8px;
    color: #FF6B6B;
    font-size: 14px;
    text-align: center;
}

.error-message.hidden {
    display: none;
}

.auth-btn {
    padding: 16px 24px;
    background: linear-gradient(135deg, #FF7043 0%, #FF5722 100%);
    border: none;
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 112, 67, 0.4);
}

.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: #B0B0B0;
}

.auth-link {
    color: #FF7043;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: #FF5722;
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 112, 67, 0.1);
    border: 1px solid rgba(255, 112, 67, 0.3);
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-btn:hover {
    background: rgba(255, 112, 67, 0.2);
    border-color: rgba(255, 112, 67, 0.5);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF7043 0%, #FF5722 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: rgba(26, 26, 26, 0.95);
    border: 1px solid rgba(255, 112, 67, 0.2);
    border-radius: 8px;
    padding: 8px;
    display: none;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.user-dropdown.show {
    display: block;
}

.dropdown-item {
    padding: 10px 12px;
    color: #FFFFFF;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
    display: block;
    text-decoration: none;
}

.dropdown-item:hover {
    background: rgba(255, 112, 67, 0.1);
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 8px 0;
}


/* API Linked Message */
.api-linked-message {
    text-align: center;
    padding: 60px 40px;
    background: rgba(76, 175, 80, 0.05);
    border: 2px solid rgba(76, 175, 80, 0.3);
    border-radius: 16px;
    margin-top: 40px;
}

.linked-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #FFFFFF;
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.3);
}

.linked-title {
    font-size: 28px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 12px;
}

.linked-subtitle {
    font-size: 16px;
    color: #B0B0B0;
    margin-bottom: 32px;
    line-height: 1.6;
}

.secondary-btn {
    padding: 14px 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    margin-left: 12px;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.api-linked-message .connect-btn {
    margin-left: 0;
    display: inline-block;
}


/* Synthetic Data Divider */
.synthetic-divider {
    margin: 32px 0 24px;
    text-align: center;
    position: relative;
}

.synthetic-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.synthetic-divider span {
    position: relative;
    background: #0d0d0d;
    padding: 0 16px;
    color: #808080;
    font-size: 14px;
    font-weight: 500;
}

/* Test keys grid in connected message */
.api-linked-message .test-keys-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 0;
}

@media (max-width: 768px) {
    .api-linked-message .test-keys-grid {
        grid-template-columns: 1fr;
    }
}

/* Guest
 Banner */
.guest-banner {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.1) 0%, rgba(255, 193, 7, 0.1) 100%);
    border: 2px solid rgba(255, 152, 0, 0.3);
    border-radius: 12px;
    padding: 16px 24px;
    margin: 24px 0;
    animation: slideDown 0.4s ease;
}

.guest-banner-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.guest-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.guest-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.guest-text strong {
    color: #FFA726;
    font-size: 16px;
    font-weight: 700;
}

.guest-text span {
    color: #B0B0B0;
    font-size: 14px;
}

.guest-signup-btn {
    padding: 10px 24px;
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    border: none;
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.guest-signup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 152, 0, 0.4);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .guest-banner-content {
        flex-direction: column;
        text-align: center;
    }

    .guest-signup-btn {
        width: 100%;
    }
}

/* 
Google Sign-In Styles */
.google-signin-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 32px 0;
    min-height: 60px;
}

.privacy-note {
    text-align: center;
    font-size: 13px;
    color: #808080;
    margin-top: 24px;
}

/* Override Google button styles to match theme */
.g_id_signin {
    margin: 0 auto;
}

/* Adjust auth card for Google Sign-In */
.auth-card {
    max-width: 480px;
}

.auth-section .auth-card {
    padding: 48px 40px;
}

/* Live Analytics Dashboard Wrapper - Matches hero-savings exactly */
.analytics-dashboard-wrapper {
    background: linear-gradient(135deg, #1A1A1A 0%, #252525 100%);
    border-radius: 16px;
    padding: 3rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
    margin-left: -40%;
    margin-right: -40%;
    width: 180%;
    border: 1px solid #333;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

/* Live Analytics Dashboard Content */
.live-analytics-dashboard {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    box-shadow: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.analytics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.analytics-title-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.analytics-icon {
    font-size: 2rem;
    filter: grayscale(0.2);
}

.analytics-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.2;
}

.analytics-subtitle {
    font-size: 0.85rem;
    color: #888;
    margin: 0.25rem 0 0 0;
}

.time-selector {
    display: flex;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.25rem;
    border-radius: 8px;
}

.time-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    color: #888;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.time-btn:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.05);
}

.time-btn.active {
    background: linear-gradient(135deg, #FF7043, #FF5722);
    color: #FFFFFF;
}

.analytics-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: all 0.3s ease;
    cursor: pointer;
}

.metric-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 112, 67, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 112, 67, 0.2);
}

.metric-icon {
    font-size: 2rem;
    line-height: 1;
    filter: grayscale(0.2);
}

.metric-content {
    flex: 1;
}

.metric-label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.metric-change {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.metric-change.positive {
    color: #4CAF50;
}

.metric-change.negative {
    color: #FF5722;
}

.change-arrow {
    font-size: 0.9rem;
}

.analytics-chart-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    height: 250px;
    position: relative;
}

#liveAnalyticsChart {
    max-width: 100%;
    max-height: 100%;
}

.analytics-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.live-text {
    font-size: 0.85rem;
    color: #888;
    font-weight: 500;
}

.analytics-legend {
    display: flex;
    gap: 1.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.legend-label {
    font-size: 0.85rem;
    color: #888;
    font-weight: 500;
}

/* Responsive adjustments for analytics dashboard */
@media (max-width: 768px) {
    .analytics-dashboard-wrapper {
        padding: 2rem;
    }

    .analytics-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .time-selector {
        width: 100%;
    }

    .time-btn {
        flex: 1;
    }

    .analytics-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .metric-card {
        padding: 1rem;
    }

    .metric-value {
        font-size: 1.5rem;
    }

    .analytics-chart-container {
        height: 200px;
        padding: 1rem;
    }

    .analytics-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .analytics-dashboard-wrapper {
        padding: 1.5rem;
    }

    .analytics-metrics {
        grid-template-columns: 1fr;
    }
}


.dashboard-layout {
    display: flex;
    min-height: calc(100vh - 80px);
}

/* Sidebar */
.sidebar {
    width: 240px;
    background: #1A1A1A;
    border-right: 1px solid #333;
    padding: 2rem 0;
    position: fixed;
    height: calc(100vh - 80px);
    left: 0;
    top: 80px;
    z-index: 100;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 1rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    color: #B0B0B0;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

.sidebar-link:hover {
    background: rgba(255, 112, 67, 0.1);
    color: #FFFFFF;
}

.sidebar-link.active {
    background: linear-gradient(135deg, #FF7043 0%, #FF5722 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(255, 112, 67, 0.3);
}

.sidebar-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.sidebar-text {
    font-size: 1rem;
}

/* Dashboard Content */
.dashboard-content {
    flex: 1;
    margin-left: 240px;
    padding: 2rem 0;
}

.view-section {
    display: none;
}

.view-section.active {
    display: block;
}

/* Insights Page Styles */
.insights-header {
    margin-bottom: 2rem;
    text-align: center;
}

.insights-subtitle {
    color: #B0B0B0;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.insights-summary {
    margin-bottom: 2rem;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: linear-gradient(135deg, #1A1A1A 0%, #252525 100%);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-4px);
    border-color: #FF7043;
    box-shadow: 0 8px 30px rgba(255, 112, 67, 0.2);
}

.summary-icon {
    font-size: 3rem;
    line-height: 1;
}

.summary-content {
    flex: 1;
}

.summary-label {
    font-size: 0.9rem;
    color: #B0B0B0;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.summary-value {
    font-size: 2rem;
    font-weight: 700;
    color: #FFFFFF;
}

/* Insights List */
.insights-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.insight-card {
    background: #1A1A1A;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.insight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #FF7043, #4CAF50);
}

.insight-card:hover {
    transform: translateX(4px);
    border-color: #FF7043;
    box-shadow: 0 8px 30px rgba(255, 112, 67, 0.2);
}

.insight-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.insight-title-section {
    flex: 1;
}

.insight-priority {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.insight-priority.high {
    background: rgba(255, 112, 67, 0.2);
    color: #FF7043;
}

.insight-priority.medium {
    background: rgba(255, 193, 7, 0.2);
    color: #FFC107;
}

.insight-priority.low {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.insight-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
}

.insight-description {
    font-size: 1rem;
    color: #B0B0B0;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.insight-recommendation {
    background: rgba(76, 175, 80, 0.1);
    border-left: 3px solid #4CAF50;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.insight-recommendation strong {
    color: #4CAF50;
    display: block;
    margin-bottom: 0.5rem;
}

.insight-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #333;
}

.insight-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.insight-stat-label {
    font-size: 0.85rem;
    color: #888;
    font-weight: 500;
}

.insight-stat-value {
    font-size: 1.3rem;
    font-weight: 700;
}

.insight-stat-value.current {
    color: #FF7043;
}

.insight-stat-value.savings {
    color: #4CAF50;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #B0B0B0;
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* Recommendations Grid */
.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.recommendation-card {
    background: #1A1A1A;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.recommendation-card:hover {
    transform: translateY(-4px);
    border-color: #FF7043;
    box-shadow: 0 8px 30px rgba(255, 112, 67, 0.2);
}

.rec-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.rec-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #FFFFFF;
}

.rec-description {
    color: #B0B0B0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.implement-btn {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #FF7043, #FF5722);
    border: none;
    border-radius: 8px;
    color: #FFFFFF;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.implement-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 112, 67, 0.4);
}

/* Responsive Design for Sidebar */
@media (max-width: 768px) {
    .sidebar {
        width: 80px;
    }

    .sidebar-text {
        display: none;
    }

    .sidebar-link {
        justify-content: center;
        padding: 1rem;
    }

    .dashboard-content {
        margin-left: 80px;
    }

    .summary-cards {
        grid-template-columns: 1fr;
    }

    .insight-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        top: 0;
        border-right: none;
        border-bottom: 1px solid #333;
        padding: 1rem 0;
    }

    .sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
    }

    .sidebar-link {
        flex-direction: column;
        gap: 0.5rem;
        min-width: 80px;
    }

    .sidebar-text {
        display: block;
        font-size: 0.75rem;
    }

    .dashboard-content {
        margin-left: 0;
    }

    .dashboard-layout {
        flex-direction: column;
    }
}

/* Peri
od Selector */
.period-selector {
    display: flex;
    gap: 10px;
    margin: 20px 0 30px 0;
    justify-content: center;
}

.period-btn {
    padding: 10px 24px;
    background: #2A2A2A;
    color: #B0B0B0;
    border: 1px solid #444;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.period-btn:hover {
    background: #333;
    color: #E0E0E0;
    border-color: #555;
}

.period-btn.active {
    background: linear-gradient(135deg, #FF7043 0%, #FF5722 100%);
    color: #FFFFFF;
    border-color: #FF7043;
}

/* Insights Header */
.insights-header {
    text-align: center;
    margin-bottom: 30px;
}

.insights-subtitle {
    color: #B0B0B0;
    font-size: 16px;
    margin-top: 10px;
}

/* Loading Section */
.loading-section {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #333;
    border-top-color: #FF7043;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: #B0B0B0;
    font-size: 16px;
}

/* Summary Cards */
.insights-summary {
    margin-bottom: 40px;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background: #2A2A2A;
    border: 1px solid #444;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.summary-icon {
    font-size: 32px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 112, 67, 0.1);
    border-radius: 10px;
}

.summary-content {
    flex: 1;
}

.summary-label {
    color: #B0B0B0;
    font-size: 14px;
    margin-bottom: 8px;
}

.summary-value {
    color: #FFFFFF;
    font-size: 28px;
    font-weight: 700;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #E0E0E0;
    font-size: 24px;
    margin-bottom: 12px;
}

.empty-state p {
    color: #B0B0B0;
    font-size: 16px;
    margin-bottom: 30px;
}

.connect-btn {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, #FF7043 0%, #FF5722 100%);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.connect-btn:hover {
    transform: translateY(-2px);
}

/* Hidden utility class */
.hidden {
    display: none !important;
}

/* Chart
 Section */
.chart-section {
    background: #2A2A2A;
    border: 1px solid #444;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.chart-container {
    position: relative;
    width: 100%;
    height: 400px;
    margin-top: 20px;
}

.chart-container canvas {
    max-width: 100%;
    height: 100% !important;
}

/* Dashboard Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 30px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
}

.dashboard-header-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.dashboard-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-brand {
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.5px;
}

.dashboard-title {
    font-size: 28px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
}

.back-btn {
    padding: 10px 20px;
    background: #2A2A2A;
    color: #E0E0E0;
    border: 1px solid #444;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #333;
    border-color: #555;
    transform: translateX(-2px);
}

/* Responsive Dashboard Header */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .dashboard-header-left {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .dashboard-title {
        font-size: 24px;
    }

    .back-btn {
        width: 100%;
        text-align: center;
    }
}


.stats-section {
    margin-bottom: 2rem;
}

.stats-table {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.stat-item {
    background: linear-gradient(135deg, #1A1A1A 0%, #252525 100%);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-item:hover {
    background: linear-gradient(135deg, #252525 0%, #2A2A2A 100%);
    border-color: #444;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.stat-label {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1;
    margin-bottom: 1rem;
}

.stat-value.loading {
    color: #FF7043;
    animation: pulse-stat 1.5s ease-in-out infinite;
}

.stat-value.error {
    color: #FF5722;
    font-size: 1rem;
}

/* Sparkline Chart Container */
.stat-sparkline {
    width: 100%;
    height: 60px;
    margin-top: auto;
    position: relative;
}

.stat-sparkline canvas {
    width: 100% !important;
    height: 100% !important;
}

@keyframes pulse-stat {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

/* Responsive adjustments for stats */
@media (max-width: 1200px) {
    .stats-table {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-table {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-item {
        min-height: 150px;
    }

    .stat-value {
        font-size: 2rem;
    }
}

/* Ca
ll Duration Extremes Section */
.extremes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.extreme-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.extreme-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border-color: #444;
}

.extreme-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.extreme-icon {
    font-size: 24px;
}

.extreme-title {
    font-size: 14px;
    font-weight: 600;
    color: #B0B0B0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.extreme-value {
    font-size: 32px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.extreme-cost {
    font-size: 18px;
    font-weight: 600;
    color: #36A2EB;
    margin-bottom: 8px;
}

.extreme-date {
    font-size: 14px;
    color: #808080;
}

/* Breakdown Section */
.breakdown-section {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
}

.breakdown-section .section-title {
    margin-bottom: 20px;
}

/*
 Call Duration Header Actions */
.insights-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.refresh-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    border: 1px solid #333;
    border-radius: 8px;
    color: #E0E0E0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    background: linear-gradient(135deg, #333 0%, #2a2a2a 100%);
    border-color: #444;
    transform: translateY(-1px);
}

.refresh-btn:active {
    transform: translateY(0);
}

.refresh-btn.spinning .refresh-icon {
    animation: spin 1s linear;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.last-updated {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 12px;
}

.update-label {
    color: #808080;
    margin-bottom: 2px;
}

.update-time {
    color: #B0B0B0;
    font-weight: 500;
}

/* User Menu Styles */
.user-menu {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #333;
    border-radius: 8px;
    color: #E0E0E0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #444;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: white;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 12px 16px;
    color: #E0E0E0;
    cursor: pointer;
    transition: background 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.dropdown-item:first-child {
    border-radius: 8px 8px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 8px 8px;
}

.dropdown-divider {
    height: 1px;
    background: #333;
    margin: 4px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .insights-header {
        flex-direction: column;
        align-items: stretch;
    }

    .header-actions {
        justify-content: space-between;
    }

    .last-updated {
        align-items: flex-start;
    }
}

/* Professional Icon Styling for Lucide Icons */
.summary-icon i,
.sidebar-icon i,
.extreme-icon i,
.empty-icon i {
    width: 24px;
    height: 24px;
    stroke-width: 2;
    color: #667EEA;
}

.summary-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.sidebar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.sidebar-link.active .sidebar-icon i {
    color: #FF7043;
}

.sidebar-link:hover .sidebar-icon i {
    color: #FF7043;
}

.extreme-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
}

.extreme-icon i {
    width: 20px;
    height: 20px;
}

.empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    width: 80px;
    height: 80px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 50%;
}

.empty-icon i {
    width: 48px;
    height: 48px;
    color: #667EEA;
    opacity: 0.5;
}

/* Icon color variations */
.summary-card:nth-child(1) .summary-icon {
    background: rgba(102, 126, 234, 0.1);
}

.summary-card:nth-child(1) .summary-icon i {
    color: #667EEA;
}

.summary-card:nth-child(2) .summary-icon {
    background: rgba(72, 187, 120, 0.1);
}

.summary-card:nth-child(2) .summary-icon i {
    color: #48BB78;
}

.summary-card:nth-child(3) .summary-icon {
    background: rgba(246, 173, 85, 0.1);
}

.summary-card:nth-child(3) .summary-icon i {
    color: #F6AD55;
}

.summary-card:nth-child(4) .summary-icon {
    background: rgba(159, 122, 234, 0.1);
}

.summary-card:nth-child(4) .summary-icon i {
    color: #9F7AEA;
}

/* Extreme card icon colors */
.extreme-card:nth-child(1) .extreme-icon {
    background: rgba(72, 187, 120, 0.1);
}

.extreme-card:nth-child(1) .extreme-icon i {
    color: #48BB78;
}

.extreme-card:nth-child(2) .extreme-icon {
    background: rgba(245, 101, 101, 0.1);
}

.extreme-card:nth-child(2) .extreme-icon i {
    color: #F56565;
}

/* Section title icon */
.section-title i {
    vertical-align: middle;
    margin-right: 8px;
    color: #667EEA;
}

/* Hover effects */
.summary-card:hover .summary-icon {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.extreme-card:hover .extreme-icon {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* ==
==========================================
   Enhanced Insights Page Styles
   ============================================ */

/* Insight Card Enhancements */
.insight-card {
    position: relative;
    transition: all 0.3s ease;
}

.insight-card.expanded {
    background: #1F1F1F;
}

/* Savings Badge */
.insight-savings-badge {
    text-align: right;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border-radius: 8px;
    min-width: 120px;
}

.savings-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.savings-period {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Metrics Grid */
.insight-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    margin: 1.5rem 0;
}

.metric {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.metric-label {
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #4CAF50;
}

/* Details Section */
.insight-details {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #333;
    display: none;
}

.detail-section {
    margin-bottom: 1.5rem;
}

.detail-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Comparison Grid */
.comparison-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.comparison-row {
    display: grid;
    grid-template-columns: 120px 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
}

.comparison-label {
    font-size: 0.85rem;
    color: #888;
    font-weight: 500;
}

.comparison-current {
    color: #FF7043;
    font-weight: 600;
}

.comparison-arrow {
    color: #4CAF50;
    font-size: 1.2rem;
}

.comparison-recommended {
    color: #4CAF50;
    font-weight: 600;
}

/* Implementation Steps */
.implementation-info {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.impl-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 112, 67, 0.1);
    border: 1px solid rgba(255, 112, 67, 0.3);
    border-radius: 6px;
    font-size: 0.85rem;
    color: #FF7043;
}

.implementation-steps {
    list-style: none;
    counter-reset: step-counter;
    padding-left: 0;
}

.implementation-steps li {
    counter-increment: step-counter;
    position: relative;
    padding: 0.75rem 0.75rem 0.75rem 3rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    border-left: 3px solid #4CAF50;
}

.implementation-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.5rem;
    height: 1.5rem;
    background: #4CAF50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Notes */
.insight-notes {
    padding: 1rem;
    background: rgba(76, 175, 80, 0.05);
    border-left: 3px solid #4CAF50;
    border-radius: 6px;
    color: #B0B0B0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Actions */
.insight-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #333;
}

.btn-expand {
    flex: 1;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid #444;
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-expand:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #FF7043;
}

.expand-icon {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.btn-primary {
    flex: 1;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #FF7043 0%, #ff5722 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 112, 67, 0.3);
}

/* Loading State */
.loading-section {
    text-align: center;
    padding: 4rem 2rem;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 112, 67, 0.1);
    border-top-color: #FF7043;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: #888;
    font-size: 1rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #888;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.connect-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #FF7043 0%, #ff5722 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.connect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 112, 67, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .insight-header {
        flex-direction: column;
        gap: 1rem;
    }

    .insight-savings-badge {
        text-align: left;
    }

    .insight-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .comparison-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: left;
    }

    .comparison-arrow {
        display: none;
    }

    .insight-actions {
        flex-direction: column;
    }

    .implementation-steps li {
        padding-left: 2.5rem;
    }
}

/* Priority Badge Animations */
.insight-priority {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Hover Effects */
.insight-card:hover .savings-amount {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Confidence Bar */
.metric-value[data-confidence]::after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #4CAF50 0%, #4CAF50 var(--confidence), #333 var(--confidence), #333 100%);
    margin-top: 0.5rem;
    border-radius: 2px;
}


/* ============================================
   PROFESSIONAL INSIGHTS REDESIGN
   ============================================ */

/* Override childish styles with professional ones */
.insight-card {
    background: #1A1A1A !important;
    border: 1px solid #2A2A2A !important;
    border-left: 3px solid transparent !important;
    border-radius: 4px !important;
    padding: 1.75rem !important;
    margin-bottom: 1.25rem !important;
    transition: all 0.2s ease !important;
}

.insight-card:hover {
    border-left-color: #FF7043 !important;
    background: #1F1F1F !important;
    transform: none !important;
}

.insight-card.expanded {
    background: #1F1F1F !important;
    border-left-color: #FF7043 !important;
}

/* Professional Savings Badge */
.insight-savings-badge {
    background: rgba(76, 175, 80, 0.06) !important;
    border: 1px solid rgba(76, 175, 80, 0.15) !important;
    border-radius: 4px !important;
    padding: 0.875rem 1.5rem !important;
}

.savings-amount {
    font-size: 1.875rem !important;
    font-weight: 600 !important;
    color: #4CAF50 !important;
    line-height: 1 !important;
    letter-spacing: -0.5px !important;
}

.savings-period {
    font-size: 0.65rem !important;
    color: #666 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.2px !important;
    margin-top: 0.375rem !important;
    font-weight: 500 !important;
}

/* Professional Priority Badges */
.insight-priority {
    padding: 0.375rem 0.875rem !important;
    border-radius: 3px !important;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
}

.insight-priority.high {
    background: rgba(239, 68, 68, 0.08) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
}

.insight-priority.medium {
    background: rgba(245, 158, 11, 0.08) !important;
    color: #f59e0b !important;
    border: 1px solid rgba(245, 158, 11, 0.2) !important;
}

.insight-priority.low {
    background: rgba(59, 130, 246, 0.08) !important;
    color: #3b82f6 !important;
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
}

/* Professional Title */
.insight-title {
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    color: #fff !important;
    margin: 0.75rem 0 0 0 !important;
    letter-spacing: -0.3px !important;
}

/* Professional Description */
.insight-description {
    font-size: 0.9375rem !important;
    color: #999 !important;
    line-height: 1.6 !important;
    margin: 0.75rem 0 !important;
}

/* Professional Metrics Grid */
.insight-metrics {
    background: rgba(255, 255, 255, 0.015) !important;
    border: 1px solid #2A2A2A !important;
    border-radius: 4px !important;
    padding: 1.25rem !important;
    margin: 1.25rem 0 !important;
}

.metric-label {
    font-size: 0.75rem !important;
    color: #666 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    font-weight: 500 !important;
}

.metric-value {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: #4CAF50 !important;
    margin-top: 0.375rem !important;
    letter-spacing: -0.3px !important;
}

/* Professional Comparison Grid */
.comparison-row {
    background: rgba(255, 255, 255, 0.015) !important;
    border: 1px solid #2A2A2A !important;
    border-radius: 4px !important;
    padding: 0.875rem !important;
}

.comparison-label {
    font-size: 0.75rem !important;
    color: #666 !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.comparison-current {
    color: #FF7043 !important;
    font-weight: 500 !important;
    font-size: 0.9375rem !important;
}

.comparison-arrow {
    color: #4CAF50 !important;
    font-size: 1rem !important;
    opacity: 0.6 !important;
}

.comparison-recommended {
    color: #4CAF50 !important;
    font-weight: 600 !important;
    font-size: 0.9375rem !important;
}

/* Professional Implementation Steps */
.impl-badge {
    background: rgba(255, 112, 67, 0.06) !important;
    border: 1px solid rgba(255, 112, 67, 0.15) !important;
    border-radius: 3px !important;
    padding: 0.5rem 0.875rem !important;
    font-size: 0.75rem !important;
    color: #FF7043 !important;
    font-weight: 500 !important;
}

.implementation-steps {
    margin-top: 1rem !important;
}

.implementation-steps li {
    background: rgba(255, 255, 255, 0.015) !important;
    border: 1px solid #2A2A2A !important;
    border-left: 2px solid #4CAF50 !important;
    border-radius: 4px !important;
    padding: 0.875rem 0.875rem 0.875rem 3.25rem !important;
    margin-bottom: 0.625rem !important;
    font-size: 0.9375rem !important;
    color: #ccc !important;
    line-height: 1.5 !important;
}

.implementation-steps li::before {
    width: 1.75rem !important;
    height: 1.75rem !important;
    background: #4CAF50 !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    left: 0.875rem !important;
}

/* Professional Notes */
.insight-notes {
    background: rgba(76, 175, 80, 0.03) !important;
    border-left: 2px solid rgba(76, 175, 80, 0.3) !important;
    border-radius: 4px !important;
    padding: 1rem 1.25rem !important;
    color: #999 !important;
    font-size: 0.9375rem !important;
    line-height: 1.6 !important;
}

/* Professional Buttons */
.btn-expand {
    background: transparent !important;
    border: 1px solid #333 !important;
    border-radius: 4px !important;
    padding: 0.875rem 1.5rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: #ccc !important;
    letter-spacing: 0.3px !important;
}

.btn-expand:hover {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: #444 !important;
    color: #fff !important;
}

.btn-primary {
    background: #FF7043 !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 0.875rem 1.5rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: white !important;
    letter-spacing: 0.3px !important;
}

.btn-primary:hover {
    background: #ff5722 !important;
    transform: none !important;
    box-shadow: 0 2px 8px rgba(255, 112, 67, 0.2) !important;
}

/* Professional Detail Section Headers */
.detail-section h4 {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #fff !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    margin-bottom: 1rem !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 1px solid #2A2A2A !important;
}

/* Remove emoji from headers for professional look */
.detail-section h4::before {
    content: '' !important;
    margin-right: 0 !important;
}

/* Professional Summary Cards */
.summary-card {
    background: #1A1A1A !important;
    border: 1px solid #2A2A2A !important;
    border-radius: 4px !important;
    padding: 1.5rem !important;
}

.summary-card:hover {
    border-color: #333 !important;
    transform: none !important;
}

.summary-value {
    font-size: 2rem !important;
    font-weight: 600 !important;
    letter-spacing: -0.5px !important;
}

.summary-label {
    font-size: 0.75rem !important;
    color: #666 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    font-weight: 500 !important;
}

/* Remove excessive animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.insight-priority {
    animation: fadeIn 0.3s ease !important;
}

/* Professional empty state */
.empty-state {
    padding: 3rem 2rem !important;
}

.empty-icon {
    font-size: 3rem !important;
    opacity: 0.3 !important;
}

.empty-state h3 {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: #fff !important;
    margin: 1rem 0 0.5rem !important;
}

.empty-state p {
    color: #888 !important;
    font-size: 0.9375rem !important;
    line-height: 1.6 !important;
}

.connect-btn {
    background: #FF7043 !important;
    padding: 0.875rem 2rem !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    letter-spacing: 0.3px !important;
    margin-top: 1.5rem !important;
}

.connect-btn:hover {
    background: #ff5722 !important;
    transform: none !important;
    box-shadow: 0 2px 8px rgba(255, 112, 67, 0.2) !important;
}


/* ============================================
   ADVANCED FEATURES STYLES
   ============================================ */

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.page-subtitle {
    color: #B0B0B0;
    font-size: 14px;
    margin-top: 5px;
}

.header-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.header-controls select {
    background: #2A2A2A;
    color: #E0E0E0;
    border: 1px solid #444;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
}

/* Budget Alerts Styles */
.budget-health-section,
.alert-settings-section,
.active-alerts-section,
.alert-history-section {
    margin-bottom: 40px;
}

.section-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: #E0E0E0;
    margin-bottom: 20px;
}

.health-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.health-card {
    background: linear-gradient(135deg, #2A2A2A 0%, #1F1F1F 100%);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.health-icon {
    font-size: 32px;
}

.health-content {
    flex: 1;
}

.health-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
}

.health-value {
    font-size: 24px;
    font-weight: 700;
    color: #FF7043;
}

.settings-card {
    background: #1F1F1F;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #E0E0E0;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input[type="number"],
.form-group input[type="text"] {
    width: 100%;
    background: #2A2A2A;
    border: 1px solid #444;
    color: #E0E0E0;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 14px;
}

.form-group input[type="checkbox"] {
    margin-right: 8px;
}

.alerts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.alert-card {
    background: #1F1F1F;
    border: 1px solid #333;
    border-left: 4px solid #FF7043;
    border-radius: 8px;
    padding: 20px;
}

.alert-card.critical {
    border-left-color: #ef4444;
}

.alert-card.warning {
    border-left-color: #f59e0b;
}

.alert-card.info {
    border-left-color: #3b82f6;
}

.alert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.alert-severity {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
}

.alert-date {
    font-size: 12px;
    color: #888;
}

.alert-title {
    font-size: 16px;
    font-weight: 600;
    color: #E0E0E0;
    margin-bottom: 8px;
}

.alert-message {
    color: #B0B0B0;
    font-size: 14px;
    margin-bottom: 15px;
}

.alert-metadata {
    background: #2A2A2A;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
}

.metadata-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 13px;
}

.metadata-label {
    color: #888;
}

.metadata-value {
    color: #E0E0E0;
    font-weight: 500;
}

.alert-actions {
    display: flex;
    gap: 10px;
}

.btn-dismiss {
    background: #444;
    color: #E0E0E0;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.btn-dismiss:hover {
    background: #555;
}

/* Optimization Styles */
.optimization-summary,
.spending-profile-section,
.recommendations-section {
    margin-bottom: 40px;
}

.profile-card {
    background: #1F1F1F;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 25px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.profile-stat {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-label {
    font-size: 12px;
    color: #888;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #FF7043;
}

.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recommendation-card {
    background: #1F1F1F;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 25px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.recommendation-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.recommendation-card.high {
    border-left: 4px solid #10b981;
}

.recommendation-card.medium {
    border-left: 4px solid #f59e0b;
}

.recommendation-card.low {
    border-left: 4px solid #6b7280;
}

.rec-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 20px;
}

.rec-title-section {
    flex: 1;
}

.rec-confidence {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.rec-confidence.high {
    background: #10b981;
}

.rec-confidence.medium {
    background: #f59e0b;
}

.rec-confidence.low {
    background: #6b7280;
}

.rec-title {
    font-size: 18px;
    font-weight: 600;
    color: #E0E0E0;
    margin: 0;
}

.rec-savings {
    text-align: right;
}

.rec-description {
    color: #B0B0B0;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.rec-details {
    background: #2A2A2A;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #333;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: #888;
    font-size: 13px;
}

.detail-value {
    color: #E0E0E0;
    font-weight: 500;
    font-size: 13px;
}

.rec-reasoning {
    background: #2A2A2A;
    border-left: 3px solid #FF7043;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #B0B0B0;
}

.rec-actions {
    display: flex;
    gap: 10px;
}

.btn-accept {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.2s;
}

.btn-accept:hover {
    transform: scale(1.05);
}

.rec-status {
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
}

.rec-status.accepted {
    background: #10b98120;
    color: #10b981;
}

.rec-status.dismissed {
    background: #6b728020;
    color: #6b7280;
}

/* Stack Comparison Styles */
.current-stack-section,
.comparison-summary,
.alternatives-section {
    margin-bottom: 40px;
}

.stack-card {
    background: #1F1F1F;
    border: 2px solid #FF7043;
    border-radius: 12px;
    padding: 25px;
}

.stack-card.current {
    background: linear-gradient(135deg, #2A2A2A 0%, #1F1F1F 100%);
}

.stack-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.stack-header h4 {
    font-size: 18px;
    font-weight: 600;
    color: #E0E0E0;
    margin: 0;
}

.stack-cost {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cost-label {
    font-size: 13px;
    color: #888;
}

.cost-value {
    font-size: 24px;
    font-weight: 700;
    color: #FF7043;
}

.stack-components {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.component-card {
    background: #2A2A2A;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.component-type {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 8px;
}

.component-provider {
    font-size: 16px;
    font-weight: 600;
    color: #E0E0E0;
    margin-bottom: 5px;
}

.component-cost {
    font-size: 14px;
    color: #FF7043;
    font-weight: 500;
}

.component-model {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

.stack-stats {
    display: flex;
    gap: 30px;
    padding-top: 15px;
    border-top: 1px solid #333;
}

.alternatives-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.alternative-card {
    background: #1F1F1F;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 25px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.alternative-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.alt-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 20px;
}

.alt-title {
    font-size: 18px;
    font-weight: 600;
    color: #E0E0E0;
    margin: 0;
}

.alt-savings {
    text-align: right;
}

.savings-percent {
    font-size: 12px;
    color: #10b981;
    margin-top: 4px;
}

.cost-comparison {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: #2A2A2A;
    border-radius: 8px;
}

.cost-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cost-item.new .cost-value {
    color: #10b981;
}

.cost-arrow {
    font-size: 24px;
    color: #888;
}

.alt-reasoning,
.alt-tradeoffs {
    background: #2A2A2A;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #B0B0B0;
}

.alt-tradeoffs ul {
    margin: 10px 0 0 20px;
    padding: 0;
}

.alt-tradeoffs li {
    margin-bottom: 5px;
}

.alt-actions {
    display: flex;
    gap: 10px;
}

/* Common Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #FF7043 0%, #FF5722 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.2s;
}

.btn-primary:hover {
    transform: scale(1.05);
}

.btn-secondary {
    background: #444;
    color: #E0E0E0;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: #555;
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    animation: slideIn 0.3s ease-out;
}

.toast.success {
    background: #10b981;
}

.toast.error {
    background: #ef4444;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #E0E0E0;
    margin-bottom: 10px;
}

.empty-state p {
    color: #888;
    margin-bottom: 30px;
}

.empty-message {
    text-align: center;
    color: #888;
    padding: 40px 20px;
    font-size: 14px;
}

/* Loading Spinner */
.loading-spinner {
    border: 3px solid #333;
    border-top: 3px solid #FF7043;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 40px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .health-cards {
        grid-template-columns: 1fr;
    }

    .stack-components {
        grid-template-columns: 1fr;
    }

    .cost-comparison {
        flex-direction: column;
        gap: 10px;
    }

    .cost-arrow {
        transform: rotate(90deg);
    }

    .rec-header,
    .alt-header {
        flex-direction: column;
    }

    .rec-savings,
    .alt-savings {
        text-align: left;
    }
}

/* 
============================================
   DEEP ANALYTICS STYLES
   ============================================ */

.analytics-summary {
    margin-bottom: 40px;
}

.provider-breakdown-section {
    margin-bottom: 40px;
}

.provider-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.provider-card {
    background: #1F1F1F;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.provider-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 112, 67, 0.2);
    border-color: #FF7043;
}

.provider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.provider-name {
    font-size: 14px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
}

.provider-cost {
    font-size: 20px;
    font-weight: 700;
    color: #FF7043;
}

.provider-percent {
    font-size: 24px;
    font-weight: 700;
    color: #E0E0E0;
}

.trends-section {
    margin-bottom: 40px;
}

.calls-table-section {
    margin-bottom: 40px;
}

.table-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.table-controls input {
    background: #2A2A2A;
    border: 1px solid #444;
    color: #E0E0E0;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
}

.calls-table-wrapper {
    background: #1F1F1F;
    border: 1px solid #333;
    border-radius: 12px;
    overflow-x: auto;
}

.analytics-table {
    width: 100%;
    border-collapse: collapse;
}

.analytics-table thead {
    background: #2A2A2A;
}

.analytics-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #E0E0E0;
    border-bottom: 2px solid #444;
}

.analytics-table td {
    padding: 12px 15px;
    color: #B0B0B0;
    border-bottom: 1px solid #333;
}

.analytics-table tbody tr:hover {
    background: #2A2A2A;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

#pageInfo {
    color: #E0E0E0;
    font-size: 14px;
}

/* Provider Details Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-content {
    background: #1F1F1F;
    border: 1px solid #444;
    border-radius: 12px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #888;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
}

.modal-close-btn:hover {
    color: #E0E0E0;
}

.modal-content h3 {
    color: #E0E0E0;
    margin-bottom: 10px;
}

.modal-content p {
    color: #B0B0B0;
    margin-bottom: 20px;
}

.provider-details-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.provider-detail-card {
    background: #2A2A2A;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 15px;
}

.provider-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.provider-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.provider-stats .stat-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.provider-stats .stat-label {
    color: #888;
}

.provider-stats .stat-value {
    color: #E0E0E0;
    font-weight: 500;
}

.summary-change {
    font-size: 12px;
    margin-top: 5px;
}


/* ============================================
   DEEP ANALYTICS - INSIGHTS & EFFICIENCY
   ============================================ */

.quick-insights-section,
.efficiency-score-section {
    margin-bottom: 40px;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.insight-card {
    background: linear-gradient(135deg, #2A2A2A 0%, #1F1F1F 100%);
    border: 1px solid #333;
    border-left: 4px solid #FF7043;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.insight-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.insight-content {
    flex: 1;
}

.insight-title {
    font-size: 16px;
    font-weight: 600;
    color: #E0E0E0;
    margin-bottom: 8px;
}

.insight-description {
    font-size: 14px;
    color: #B0B0B0;
    line-height: 1.5;
}

.efficiency-card {
    background: linear-gradient(135deg, #2A2A2A 0%, #1F1F1F 100%);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 30px;
    display: flex;
    gap: 40px;
    align-items: center;
}

.efficiency-score {
    flex-shrink: 0;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #1A1A1A;
    border: 4px solid #FF7043;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.score-value {
    font-size: 48px;
    font-weight: 700;
    color: #FF7043;
}

.score-label {
    font-size: 14px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.efficiency-details {
    flex: 1;
}

.efficiency-status {
    font-size: 20px;
    font-weight: 600;
    color: #E0E0E0;
    margin-bottom: 15px;
}

.efficiency-tips {
    color: #B0B0B0;
    font-size: 14px;
    line-height: 1.6;
}

.efficiency-tips ul {
    margin: 10px 0;
    padding-left: 20px;
}

.efficiency-tips li {
    margin-bottom: 8px;
}

.efficiency-tips p {
    margin: 0;
}

@media (max-width: 768px) {
    .efficiency-card {
        flex-direction: column;
        text-align: center;
    }

    .insights-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================
   DASHBOARD ENHANCEMENTS
   ============================================ */

.highlights-section,
.quick-actions-section,
.top-recommendations-section {
    margin-bottom: 40px;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.highlight-card {
    background: linear-gradient(135deg, #2A2A2A 0%, #1F1F1F 100%);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.highlight-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 112, 67, 0.2);
}

.highlight-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.highlight-content {
    flex: 1;
}

.highlight-value {
    font-size: 28px;
    font-weight: 700;
    color: #FF7043;
    margin-bottom: 5px;
}

.highlight-label {
    font-size: 13px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.action-card {
    background: linear-gradient(135deg, #2A2A2A 0%, #1F1F1F 100%);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

.action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(255, 112, 67, 0.3);
    border-color: #FF7043;
}

.action-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.action-content {
    flex: 1;
}

.action-title {
    font-size: 16px;
    font-weight: 600;
    color: #E0E0E0;
    margin-bottom: 5px;
}

.action-description {
    font-size: 13px;
    color: #B0B0B0;
    line-height: 1.4;
}

.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recommendation-item {
    background: linear-gradient(135deg, #2A2A2A 0%, #1F1F1F 100%);
    border: 1px solid #333;
    border-left: 4px solid #FF7043;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: all 0.3s;
}

.recommendation-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(255, 112, 67, 0.2);
    border-left-width: 6px;
}

.rec-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.rec-content {
    flex: 1;
}

.rec-title {
    font-size: 15px;
    font-weight: 600;
    color: #E0E0E0;
    margin-bottom: 5px;
}

.rec-description {
    font-size: 13px;
    color: #B0B0B0;
    line-height: 1.4;
}

.rec-arrow {
    font-size: 20px;
    color: #FF7043;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.3s;
}

.recommendation-item:hover .rec-arrow {
    opacity: 1;
}

@media (max-width: 768px) {
    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .actions-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .highlights-grid {
        grid-template-columns: 1fr;
    }
}