/* Invoice Analysis Platform - Styles */
/* Advascale Brand Palette (from advascale_palette.html) */

:root {
    /* Primary Colors */
    --color-primary-dark: #1E2634;
    --color-secondary-dark: #2D323F;
    --color-accent: #E21F26;
    --color-accent-light: #EC8689;

    /* Text Colors */
    --color-text-light: #EBECEC;
    --color-text-muted: #9CA5A9;

    /* Gray Scale */
    --color-gray-light: #CECED0;
    --color-gray-medium: #9CA5A9;
    --color-gray-dark: #6A737C;

    /* Legacy Variables (for compatibility) */
    --primary-color: #1E2634;
    --secondary-color: #E21F26;
    --success-color: #2E7D32;
    --error-color: #E21F26;
    --warning-color: #F57C00;
    --background-color: #f5f5f5;
    --card-background: #ffffff;
    --text-color: #1E2634;
    --text-secondary: #6A737C;
    --border-color: #CECED0;
    --border-radius: 8px;
    --box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--color-primary-dark);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

/* Logo - SVG includes Advascale text */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.logo-img {
    height: 80px;
    width: auto;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 2rem;
}

header h1 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

header .subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

/* Cards */
.card {
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.card h2 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-color);
}

/* Form */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input[type="email"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input[type="email"]:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(228, 27, 35, 0.2);
}

/* File Input */
.file-input-wrapper {
    position: relative;
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.file-input-wrapper:hover {
    border-color: var(--secondary-color);
    background-color: rgba(228, 27, 35, 0.05);
}

.file-input-wrapper.drag-over {
    border-color: var(--secondary-color);
    background-color: rgba(228, 27, 35, 0.1);
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-input-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.file-input-label.has-file {
    color: var(--success-color);
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn:active:not(:disabled) {
    transform: scale(0.98);
}

.btn-primary {
    width: 100%;
    background-color: var(--secondary-color);
    color: #ffffff;  /* White text on red button */
}

.btn-primary:hover:not(:disabled) {
    background-color: #c21620;  /* Darker Advascale red */
}

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

.btn-secondary:hover:not(:disabled) {
    background-color: #1a242f;
}

/* Progress */
.progress-container {
    margin-bottom: 1.5rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background-color: var(--secondary-color);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.submission-info {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    padding: 1rem;
}

.submission-info p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.submission-info p:last-child {
    margin-bottom: 0;
}

/* Results */
.results-summary {
    background-color: transparent;
    border-left: none;
    padding: 0;
    margin-bottom: 1.5rem;
    border-radius: 0;
}

.results-summary h3 {
    color: var(--success-color);
    margin-bottom: 0.5rem;
}

.results-summary .savings {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success-color);
}

.results-details {
    margin-bottom: 1.5rem;
}

.results-details h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.service-tag {
    background-color: var(--background-color);
    padding: 0.25rem 0.75rem;
    border-radius: 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.analysis-content {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    max-height: 400px;
    overflow-y: auto;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.85rem;
    line-height: 1.8;
    white-space: pre-wrap;
}

/* Error */
.error-message {
    color: var(--error-color);
    background-color: rgba(209, 50, 18, 0.1);
    border-left: 4px solid var(--error-color);
    padding: 1rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    margin-bottom: 1rem;
}

/* Utility */
.hidden {
    display: none !important;
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .card {
        padding: 1rem;
    }
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-pending {
    background-color: rgba(245, 166, 35, 0.2);
    color: var(--warning-color);
}

.status-processing {
    background-color: rgba(0, 115, 187, 0.2);
    color: #0073bb;
}

.status-completed {
    background-color: rgba(30, 137, 0, 0.2);
    color: var(--success-color);
}

.status-failed {
    background-color: rgba(209, 50, 18, 0.2);
    color: var(--error-color);
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    border-top-color: var(--secondary-color);
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
    vertical-align: middle;
}

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

/* Tables in results */
.results-details table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.results-details th,
.results-details td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.results-details th {
    background-color: var(--background-color);
    font-weight: 600;
}

.results-details tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Button group */
.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.button-group .btn {
    flex: 1;
}

/* Markdown content styling */
.analysis-content {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    max-height: 600px;
    overflow-y: auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
}

.analysis-content h1,
.analysis-content h2,
.analysis-content h3 {
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.analysis-content h1 { font-size: 1.5rem; }
.analysis-content h2 { font-size: 1.25rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; }
.analysis-content h3 { font-size: 1.1rem; }

.analysis-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.analysis-content th,
.analysis-content td {
    padding: 0.5rem 0.75rem;
    text-align: left;
    border: 1px solid var(--border-color);
}

.analysis-content th {
    background-color: var(--background-color);
    font-weight: 600;
}

.analysis-content ul,
.analysis-content ol {
    padding-left: 1.5rem;
    margin: 0.5rem 0;
}

.analysis-content li {
    margin-bottom: 0.25rem;
}

.analysis-content strong {
    color: var(--primary-color);
}

.analysis-content code {
    background-color: var(--background-color);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.85em;
}

.analysis-content blockquote {
    border-left: 4px solid var(--secondary-color);
    margin: 1rem 0;
    padding-left: 1rem;
    color: var(--text-secondary);
}

/* PDF Export styling */
.pdf-export {
    padding: 2rem;
    background: white;
}

.pdf-export h1 {
    color: #0c1829;  /* Advascale navy */
    border-bottom: 3px solid #e41b23;  /* Advascale red */
    padding-bottom: 0.5rem;
}

/* Optimization Cards */
.priority-header {
    font-size: 1rem;
    margin: 1.5rem 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid;
}

.priority-header.priority-high { border-color: #d32f2f; color: #d32f2f; }
.priority-header.priority-medium { border-color: #f57c00; color: #f57c00; }
.priority-header.priority-low { border-color: #388e3c; color: #388e3c; }

.optimization-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-left: 4px solid;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.optimization-card.priority-high { border-left-color: #d32f2f; }
.optimization-card.priority-medium { border-left-color: #f57c00; }
.optimization-card.priority-low { border-left-color: #388e3c; }

.opt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.opt-service {
    background: var(--primary-color);
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

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

.opt-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.opt-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.opt-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.opt-meta span {
    background: var(--background-color);
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
}

/* Services table */
.services-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.services-table th,
.services-table td {
    padding: 0.5rem 0.75rem;
    text-align: left;
    border: 1px solid var(--border-color);
}

.services-table th {
    background-color: var(--background-color);
    font-weight: 600;
}

.services-table td:nth-child(2),
.services-table td:nth-child(3) {
    text-align: right;
}

/* Consolidated Client Styles */
.client-type {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.client-type.consolidated {
    background-color: #fff3e0;
    color: #e65100;
    border: 1px solid #ffb74d;
}

/* Fee Breakdown for Consolidated */
.fee-breakdown {
    background: #f5f5f5;
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    margin: 0.75rem 0;
    font-size: 0.9rem;
}

.fee-breakdown .fee-row {
    margin: 0.25rem 0;
}

.fee-breakdown .fee-row.gross {
    color: var(--text-color);
}

.fee-breakdown .fee-row.fee {
    color: #c62828;
}

.fee-breakdown .fee-row.net {
    color: var(--success-color);
    font-weight: 600;
}

/* Savings Breakdown for Standalone */
.savings-breakdown {
    background: #fff5f5;  /* Light red background */
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    margin: 0.75rem 0;
    font-size: 0.9rem;
    border-left: 3px solid #e41b23;  /* Advascale red */
}

.savings-breakdown .breakdown-row {
    margin: 0.25rem 0;
}

.savings-breakdown .breakdown-row.self {
    color: var(--text-color);
}

.savings-breakdown .breakdown-row.advascale {
    color: #e41b23;  /* Advascale red */
    font-weight: 600;
}

/* Existing Optimizations Table */
.existing-optimizations {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.existing-optimizations h4 {
    font-size: 0.95rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.existing-opts-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.existing-opts-table td {
    padding: 0.375rem 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.existing-opts-table td.amount {
    text-align: right;
    color: var(--success-color);
    font-weight: 500;
}

.existing-opts-table tr.total td {
    border-top: 2px solid var(--primary-color);
    background-color: #f5f5f5;
}

.existing-opts-table tr.total td.amount {
    color: var(--success-color);
}

/* Text Input (client name) */
.form-group input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input[type="text"]:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(228, 27, 35, 0.2);
}

/* GDPR Consent Checkbox */
.gdpr-consent {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    position: relative;
    padding-left: 32px;
    line-height: 1.5;
}

.checkbox-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.2s;
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--secondary-color);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.consent-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: normal;
}

.consent-text a {
    color: var(--secondary-color);
    text-decoration: none;
}

.consent-text a:hover {
    text-decoration: underline;
}

/* Elias Design: Analysis Results with Dark Card */
.analysis-results-wrapper {
    margin-bottom: 1.5rem;
}

.analysis-results-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--secondary-color);
    display: inline-block;
}

.analysis-results-container {
    background: #d4edda;
    border-left: 6px solid #28a745;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    padding: 1rem;
}

.analysis-dark-card {
    background: #1a1f2e;
    border-radius: var(--border-radius);
    padding: 1.25rem 1.5rem;
    border: none;
}

.dark-card-title {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 1.25rem;
    letter-spacing: 0.5px;
}

.dark-card-metrics {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border: none;
    padding: 0;
    margin: 0;
}

.dark-metric-left,
.dark-metric-center,
.dark-metric-right {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
}

.dark-metric-left {
    flex: 0 0 auto;
    text-align: left;
}

.dark-metric-center {
    flex: 1;
    text-align: center;
    padding: 0 1rem;
}

.dark-metric-right {
    flex: 0 0 auto;
    text-align: right;
}

.dark-metric-value-large {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1;
}

.dark-metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1.2;
}

.dark-metric-value-combined {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-top: 0.5rem;
    line-height: 1.2;
}

.dark-metric-label {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 0.35rem;
}

.dark-metric-label-small {
    font-size: 0.7rem;
    color: #9ca3af;
    margin-top: 0.2rem;
    line-height: 1.3;
}

.dark-metric-label-tiny {
    font-size: 0.6rem;
    color: #9ca3af;
    margin-right: 0.25rem;
}

.dark-metric-pct-row {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 0.25rem;
}

.dark-metric-pct-green {
    font-size: 1.5rem;
    font-weight: 700;
    color: #28a745;
    line-height: 1;
}

.dark-metric-pct-large {
    font-size: 1.25rem;
    font-weight: 700;
    color: #28a745;
    margin-top: 0.5rem;
    line-height: 1;
}

/* Legacy Results Summary Card - kept for backwards compatibility */
.results-summary-card {
    background: white;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--success-color);
    border-radius: var(--border-radius);
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
}

.results-summary-card h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 1.5rem;
}

.metrics-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.metric-item {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
}

.metric-currency {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

.metric-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

.metric-value.quick-wins-value {
    color: var(--secondary-color);
}

.metric-value.moderate-value {
    color: var(--secondary-color);
}

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

/* Legacy summary-card for backwards compatibility */
.summary-card {
    background: white;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--success-color);
    border-radius: var(--border-radius);
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
}

.summary-card h3 {
    font-size: 1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 1.5rem;
}

.summary-metrics {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.summary-metric {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
}

.summary-metric .value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

.summary-metric .label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.download-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.download-section p {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Download Button */
.download-btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.download-btn:hover {
    background-color: #c21620;  /* Darker Advascale red */
    transform: translateY(-1px);
}

.download-btn:active {
    transform: translateY(0);
}

/* Footer link */
footer a {
    color: var(--secondary-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Optimization Tables - Clean design matching PDF */
.optimization-table-section {
    margin-bottom: 1.5rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.25rem;
}

.table-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    padding-left: 0.75rem;
    border-left: 4px solid;
}

.quick-wins-title {
    border-left-color: #27ae60;
    color: #27ae60;
}

.moderate-title {
    border-left-color: #f57c00;
    color: #f57c00;
}

.table-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding-left: 0.75rem;
    font-style: italic;
}

.optimization-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.optimization-table th {
    color: var(--text-secondary);
    padding: 0.75rem;
    text-align: left;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
}

.optimization-table th:nth-child(2),
.optimization-table th:nth-child(3),
.optimization-table th:nth-child(4) {
    text-align: right;
}

.optimization-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.optimization-table td.number {
    text-align: right;
}

.savings-green {
    color: #27ae60 !important;
    font-weight: 500;
}

.savings-orange {
    color: #f57c00 !important;
    font-weight: 500;
}

.total-row {
    font-weight: 600;
}

.total-row td {
    border-bottom: none;
    padding-top: 1rem;
}

.quick-wins-total td {
    color: var(--text-secondary);
}

.quick-wins-total td.number {
    color: #27ae60;
}

.moderate-total td {
    color: var(--text-secondary);
}

.moderate-total td.number {
    color: #f57c00;
}

/* Perks Section */
.perks-section {
    margin-bottom: 1.5rem;
}

.perks-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--secondary-color);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    padding: 1.25rem;
}

.perks-card h4 {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.perks-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.perks-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.perks-list li:last-child {
    margin-bottom: 0;
}

.perks-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background-color: var(--secondary-color);
    border-radius: 50%;
}
