/* Executive Dashboard Styles */

/* Loading State */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 3rem;
}

.loader {
    border: 4px solid #f3f4f6;
    border-top: 4px solid #2563eb;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-container p {
    color: #6b7280;
    font-size: 1rem;
}

.executive-dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.dashboard-title {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.dashboard-subtitle {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* Account Selector */
.account-selector {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--color-bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.account-selector label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    white-space: nowrap;
}

.account-selector select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--glass-border);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: var(--color-text-primary);
    background: var(--color-bg-primary);
    cursor: pointer;
    min-width: 200px;
}

.account-selector select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Filter Notice */
.filter-notice {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 0.5rem;
    margin-top: 1rem;
}

.filter-notice .notice-icon {
    font-size: 1.25rem;
}

.filter-notice span {
    color: #92400e;
    font-size: 0.875rem;
}

.clear-filter-btn {
    margin-left: auto;
    padding: 0.375rem 0.75rem;
    background: white;
    border: 1px solid #d97706;
    border-radius: 0.375rem;
    color: #92400e;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.clear-filter-btn:hover {
    background: #fffbeb;
    border-color: #b45309;
}

/* Methodology Link */
.methodology-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: #f0f9ff;
    border: 1px solid #bfdbfe;
    border-radius: 0.5rem;
}

.methodology-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #2563eb;
    color: white;
    text-decoration: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.methodology-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.disclaimer-text {
    color: #1e40af;
    font-size: 0.875rem;
    font-style: italic;
}

/* View Toggle */
.view-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.toggle-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    background: #f3f4f6;
    color: #374151;
}

.toggle-btn:hover {
    background: #e5e7eb;
}

.toggle-btn.active {
    background: #2563eb;
    color: white;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.metric-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    border-left: 4px solid;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.metric-content {
    flex: 1;
}

.metric-title {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.metric-value.large {
    font-size: 2.5rem;
}

.metric-subtitle {
    font-size: 0.75rem;
    color: #9ca3af;
}

.metric-icon {
    font-size: 1.5rem;
    opacity: 0.7;
}

/* Card */
.card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-icon {
    font-size: 1.25rem;
}

/* Recommendations */
.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.recommendation-card {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    transition: box-shadow 0.3s;
}

.recommendation-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.rec-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.rec-tags {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.rec-number {
    font-weight: 700;
    color: #9ca3af;
}

.rec-priority,
.rec-category {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    border: 1px solid;
}

.priority-high {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
}

.priority-medium {
    background: #fef3c7;
    color: #92400e;
    border-color: #fcd34d;
}

.priority-low {
    background: #dbeafe;
    color: #1e40af;
    border-color: #93c5fd;
}

.rec-category {
    background: #f3f4f6;
    color: #374151;
    border-color: #d1d5db;
}

.rec-effort {
    font-size: 0.75rem;
    color: #6b7280;
}

.rec-title {
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.rec-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.rec-impact {
    font-size: 0.875rem;
    color: #059669;
    font-weight: 500;
}

/* Pillars Grid */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.pillar-card {
    background: var(--color-bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 0.5rem;
    padding: 1rem;
    transition: box-shadow 0.3s;
}

/* Fix for app.js generated pillars */
.pillar-card h3 {
    margin: 0.5rem 0;
    font-weight: 600;
    color: var(--color-text-primary);
}

.pillar-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.pillar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.pillar-title {
    font-weight: 600;
    color: var(--color-text-primary);
}

.pillar-grade {
    font-size: 1.5rem;
    font-weight: 700;
}

.pillar-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.pillar-stat {
    display: flex;
    justify-content: space-between;
}

.pillar-stat span:first-child {
    color: var(--color-text-secondary);
}

.stat-value {
    font-weight: 500;
}

/* Statistics Card */
.stats-card {
    background: linear-gradient(to right, #eff6ff, #eef2ff);
    border: 1px solid #bfdbfe;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.stats-title {
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.stat-item {}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

/* Compliance Grid */
.compliance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.compliance-card {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
}

.compliance-header {
    display: flex;
    justify-between;
    align-items: center;
    margin-bottom: 1rem;
}

.compliance-name {
    font-weight: 600;
    color: #111827;
}

.compliance-status {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
}

.status-ready {
    background: #d1fae5;
    color: #065f46;
}

.status-near {
    background: #fef3c7;
    color: #92400e;
}

.status-needs-work {
    background: #fed7aa;
    color: #9a3412;
}

.compliance-progress {
    margin-bottom: 0.75rem;
}

.progress-info {
    display: flex;
    justify-between;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.progress-value {
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 0.5rem;
    background: #e5e7eb;
    border-radius: 0.25rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #2563eb;
    transition: width 0.5s;
}

.compliance-time {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Opportunities List */
.opportunities-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pillar-opportunities {
    border-left: 4px solid #10b981;
    padding-left: 1rem;
}

.pillar-name {
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.75rem;
}

.opportunity-item {
    background: #f9fafb;
    padding: 0.75rem;
    border-radius: 0.5rem;
    display: flex;
    justify-between;
    margin-bottom: 0.5rem;
}

.opportunity-info {
    flex: 1;
}

.opportunity-category {
    font-weight: 500;
    color: #111827;
    margin-bottom: 0.25rem;
}

.opportunity-desc {
    font-size: 0.875rem;
    color: #6b7280;
}

.opportunity-savings {
    text-align: right;
}

.savings-monthly {
    color: #059669;
    font-weight: 700;
}

.savings-annual {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Risk Factors */
.risk-factors-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pillar-risks {
    border-left: 4px solid #f97316;
    padding-left: 1rem;
}

.risk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.risk-factor {
    background: #fff7ed;
    padding: 0.5rem;
    border-radius: 0.25rem;
}

.risk-name {
    font-weight: 500;
    font-size: 0.875rem;
    color: #9a3412;
}

.risk-count {
    font-size: 0.75rem;
    color: #c2410c;
}

/* No Data State */
.no-data-container,
.error-container {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.no-data-icon,
.error-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.no-data-title,
.error-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.no-data-message,
.error-message {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

/* Responsive Design */

/* Tablet breakpoint */
@media (max-width: 1024px) {
    .executive-dashboard {
        padding: 1.25rem;
    }

    /* Cloud provider cards - stack at tablet */
    .cloud-providers-section>div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* Multi-cloud account selection grid */
    .multicloud-assessment-section div[style*="minmax(300px"] {
        grid-template-columns: 1fr !important;
    }
}

/* Mobile breakpoint */
@media (max-width: 768px) {
    .executive-dashboard {
        padding: 0.75rem;
    }

    .dashboard-title {
        font-size: 1.5rem;
    }

    .dashboard-subtitle {
        font-size: 0.875rem;
    }

    .metrics-grid,
    .pillars-grid,
    .compliance-grid {
        grid-template-columns: 1fr;
    }

    .metric-value.large {
        font-size: 2rem;
    }

    .rec-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Account selector - stack on mobile */
    .account-selector {
        flex-direction: column;
        align-items: stretch;
    }

    .account-selector select {
        min-width: 100%;
    }

    /* View toggle - scrollable on mobile */
    .view-toggle {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.25rem;
    }

    .toggle-btn {
        padding: 0.625rem 1rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    /* Filter notice - stack on mobile */
    .filter-notice {
        flex-direction: column;
        text-align: center;
    }

    .clear-filter-btn {
        margin-left: 0;
        width: 100%;
    }

    /* Methodology link - stack */
    .methodology-link {
        flex-direction: column;
        text-align: center;
    }

    /* Cloud provider cards - full width, smaller padding */
    .cloud-providers-section>div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    .cloud-providers-section div[style*="padding: 30px"] {
        padding: 20px !important;
    }

    .cloud-providers-section div[style*="repeat(3, 1fr)"] {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
    }

    .cloud-providers-section h3[style*="font-size: 1.5rem"] {
        font-size: 1.25rem !important;
    }

    /* Multi-cloud assessment section */
    .multicloud-assessment-section {
        padding: 20px !important;
        margin: 20px 0 !important;
    }

    .multicloud-assessment-section h2 {
        font-size: 1.25rem !important;
    }

    .multicloud-assessment-section div[style*="minmax(300px"] {
        grid-template-columns: 1fr !important;
    }

    #multicloud-form {
        padding: 15px !important;
    }

    /* Multi-cloud results summary cards */
    .multicloud-assessment-section div[style*="minmax(200px"] {
        grid-template-columns: 1fr !important;
    }

    /* Modals - full screen on mobile */
    .modal-content,
    .modal-content.modal-large {
        max-width: 100% !important;
        width: 100% !important;
        max-height: 100vh !important;
        height: 100vh !important;
        border-radius: 0 !important;
        margin: 0 !important;
    }

    .modal-header {
        padding: 15px !important;
    }

    .modal-header h3 {
        font-size: 1.125rem !important;
    }

    .modal-body {
        padding: 15px !important;
    }

    /* Modal detail grids - stack */
    .modal-body div[style*="repeat(2, 1fr)"],
    .modal-body div[style*="repeat(3, 1fr)"],
    .modal-body div[style*="repeat(4, 1fr)"] {
        grid-template-columns: 1fr !important;
    }

    /* Compliance/detail grids inside modals */
    .modal-body div[style*="minmax(180px"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Risk factor tags - wrap nicely */
    .modal-body div[style*="flex-wrap: wrap"] {
        gap: 6px !important;
    }

    /* Pillar cards - touch-friendly sizing */
    .pillar-card {
        padding: 1.25rem;
    }

    /* Recommendation cards - more compact */
    .recommendation-card {
        padding: 0.75rem;
    }

    .rec-tags {
        gap: 0.375rem;
    }

    /* Opportunity items - stack savings below description */
    .opportunity-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .opportunity-savings {
        text-align: left;
    }

    /* Risk grid - single column */
    .risk-grid {
        grid-template-columns: 1fr;
    }

    /* Compliance grid - single column */
    .compliance-grid {
        grid-template-columns: 1fr !important;
    }

    /* Card padding reduction */
    .card {
        padding: 1rem;
    }

    .card-title {
        font-size: 1.1rem;
    }

    /* Loading container */
    .loading-container {
        min-height: 250px;
        padding: 2rem 1rem;
    }

    /* No data / error states */
    .no-data-container,
    .error-container {
        padding: 2rem 1rem;
    }

    .no-data-icon,
    .error-icon {
        font-size: 3rem;
    }

    .no-data-title,
    .error-title {
        font-size: 1.25rem;
    }
}

/* Small mobile breakpoint */
@media (max-width: 480px) {
    .executive-dashboard {
        padding: 0.5rem;
    }

    .dashboard-title {
        font-size: 1.25rem;
    }

    .metric-value.large {
        font-size: 1.75rem;
    }

    /* Stats grid - single column on very small screens */
    .stats-grid {
        grid-template-columns: 1fr;
    }

    /* Provider card stats - 3-col still works at this size but shrink text */
    .cloud-providers-section div[style*="repeat(3, 1fr)"] div[style*="font-size: 1.5rem"] {
        font-size: 1.25rem !important;
    }

    /* Compliance grid inside modals - single column */
    .modal-body div[style*="minmax(180px"] {
        grid-template-columns: 1fr !important;
    }

    /* Toggle buttons - smaller */
    .toggle-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* Clickable Metric Cards */
.metric-card.clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.metric-card.clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #2563eb;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 0.75rem;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 10002;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-content.modal-large {
    max-width: 800px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #111827;
}

.modal-body {
    padding: 1.5rem;
}

/* Methodology Content */
.methodology-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.methodology-content h4:first-child {
    margin-top: 0;
}

.methodology-content p {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.methodology-content ul {
    color: #4b5563;
    line-height: 1.6;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.methodology-content li {
    margin-bottom: 0.5rem;
}

.methodology-content a {
    color: #2563eb;
    text-decoration: none;
}

.methodology-content a:hover {
    text-decoration: underline;
}

/* Grade Breakdown */
.grade-breakdown {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.grade-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background: #f9fafb;
}

.grade-letter {
    font-size: 2rem;
    font-weight: 700;
    min-width: 50px;
    text-align: center;
}

.grade-details strong {
    display: block;
    color: #111827;
    margin-bottom: 0.25rem;
}

.grade-details p {
    margin: 0;
    color: #6b7280;
    font-size: 0.875rem;
}

/* Info Boxes */
.info-box {
    padding: 1rem;
    background: #dbeafe;
    border-left: 4px solid #2563eb;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.info-box strong {
    color: #1e40af;
}

.warning-box {
    padding: 1rem;
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.warning-box ul {
    margin: 0.5rem 0 0 1.5rem;
}

.warning-box li {
    color: #92400e;
}

/* Methodology Button Styles */
.methodology-btn {
    border: none;
    cursor: pointer;
}

.methodology-btn:active {
    transform: translateY(0);
}

.export-report-btn:hover {
    background: #059669 !important;
    transform: translateY(-1px);
}

/* Identity Health Section */
.identity-health-card {
    margin-bottom: 1.5rem;
}

.identity-stat {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.identity-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Base Theme (Dark Mode) Overrides for Security Overview Dashboard */
.dashboard-title,
.card-title,
.stats-title,
.section-title,
.pillar-name,
.compliance-name,
.rec-title,
.no-data-title,
.opportunity-category,
.risk-name,
.history-item-name,
.history-item-findings {
    color: var(--color-text-primary, #f9fafb) !important;
}

.dashboard-subtitle,
.section-subtitle,
.rec-effort,
.rec-description,
.opportunity-desc,
.savings-annual,
.compliance-time,
.stat-label,
.no-data-message,
.metric-title,
.metric-subtitle,
.card-description,
.history-item-date,
.history-item-score,
.disclaimer-text {
    color: var(--color-text-secondary, #9ca3af) !important;
}

.recommendation-card {
    border-color: var(--glass-border, #374151) !important;
}

.stats-card,
.identity-stat,
.azure-pillar-card,
.methodology-link {
    background: var(--color-bg-secondary, #1f2937) !important;
    border-color: var(--glass-border, #374151) !important;
}

.no-data-card,
.azure-quick-action {
    background: rgba(31, 41, 55, 0.5) !important;
    /* Darker semi-transparent background for dark mode */
}

.stat-value {
    color: var(--color-text-primary, #f9fafb) !important;
}

.metric-value {
    color: var(--color-text-primary, #f9fafb) !important;
}

/* Light Mode Overrides */
[data-theme="light"] .dashboard-title,
[data-theme="light"] .card-title,
[data-theme="light"] .stats-title,
[data-theme="light"] .section-title,
[data-theme="light"] .pillar-name,
[data-theme="light"] .compliance-name,
[data-theme="light"] .rec-title,
[data-theme="light"] .no-data-title,
[data-theme="light"] .opportunity-category,
[data-theme="light"] .risk-name,
[data-theme="light"] .stat-value,
[data-theme="light"] .metric-value,
[data-theme="light"] .history-item-name,
[data-theme="light"] .history-item-findings {
    color: #111827 !important;
}

[data-theme="light"] .dashboard-subtitle,
[data-theme="light"] .section-subtitle,
[data-theme="light"] .rec-effort,
[data-theme="light"] .rec-description,
[data-theme="light"] .opportunity-desc,
[data-theme="light"] .savings-annual,
[data-theme="light"] .compliance-time,
[data-theme="light"] .stat-label,
[data-theme="light"] .no-data-message,
[data-theme="light"] .metric-title,
[data-theme="light"] .metric-subtitle,
[data-theme="light"] .card-description,
[data-theme="light"] .history-item-date,
[data-theme="light"] .history-item-score,
[data-theme="light"] .disclaimer-text {
    color: #6b7280 !important;
}

[data-theme="light"] .recommendation-card {
    border-color: #e5e7eb !important;
}

[data-theme="light"] .stats-card {
    background: linear-gradient(to right, #eff6ff, #eef2ff) !important;
    border-color: #bfdbfe !important;
}

[data-theme="light"] .identity-stat,
[data-theme="light"] .azure-pillar-card,
[data-theme="light"] .methodology-link {
    background: #f9fafb !important;
    border-color: #e5e7eb !important;
}

[data-theme="light"] .no-data-card,
[data-theme="light"] .azure-quick-action {
    background: rgba(0, 120, 212, 0.05) !important;
    /* Original light blue background for light mode */
}