/* ===================================
   CSS Variables - Dashboard-specific only
   Common variables inherited from base.css
   =================================== */
.page--dashboard .dashboard-container {
    /* Risk color mappings - dashboard-specific */
    --color-critical: var(--color-danger);
    --color-high: var(--color-warning);
    --color-medium: var(--color-warning);
    --color-low: var(--color-success);

    /* Shadows - dashboard-specific (different from base.css defaults) */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* ===================================
   Reset & Base Styles
   =================================== */
/* Global styles inherited from base.css */
/* Sidebar styles inherited from navigation.css */

/* ===================================
   Dashboard Container
   =================================== */
.page--dashboard .dashboard-container {
    max-width: 1920px;
    padding: 2rem;
    overflow-x: hidden;
}

/* ===================================
   Header Styles
   =================================== */
/* Decorative background element */
/* Icon box before header title */
/* Nav tabs in header */
/* ===================================
   Main Content Area
   =================================== */
.page--dashboard .dashboard-main {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* ===================================
   Section Styles
   =================================== */
section:last-child {
    margin-bottom: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* ===================================
   Filters & Controls
   =================================== */
.filters {
    display: flex;
    gap: 1rem;
}

.filter-select {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    padding: 0.625rem 1rem;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    outline: none;
}

.filter-select:hover {
    border-color: var(--accent-primary);
}

.filter-select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-secondary);
    padding: 0.25rem;
    border-radius: var(--border-radius);
}

.toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: calc(var(--border-radius) - 2px);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.toggle-btn:hover {
    color: var(--text-primary);
}

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

/* ===================================
   Charts Section
   =================================== */
.overview-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.chart-container {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.chart-container:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-md);
}

.chart-container h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.chart-container canvas {
    max-height: 300px;
}

/* ===================================
   Rankings Table
   =================================== */
.rankings-table-container {
    overflow-x: auto;
    border-radius: var(--border-radius);
}

.rankings-table {
    width: 100%;
    border-collapse: collapse;
}

.rankings-table thead {
    background: var(--bg-secondary);
    position: sticky;
    top: 0;
}

.rankings-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
}

.rankings-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
}

.rankings-table tbody tr:hover {
    background: var(--bg-card-hover);
}

.rankings-table td {
    padding: 1rem;
    color: var(--text-primary);
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.9rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.rank-badge.top-3 {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--color-info) 100%);
    color: white;
}

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

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

.score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.risk-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.risk-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.risk-badge.critical {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-critical);
}

.risk-badge.critical::before { background: var(--color-critical); }

.risk-badge.high {
    background: rgba(249, 115, 22, 0.15);
    color: var(--color-high);
}

.risk-badge.high::before { background: var(--color-high); }

.risk-badge.medium {
    background: rgba(234, 179, 8, 0.15);
    color: var(--color-medium);
}

.risk-badge.medium::before { background: var(--color-medium); }

.risk-badge.low {
    background: rgba(34, 197, 94, 0.15);
    color: var(--color-low);
}

.risk-badge.low::before { background: var(--color-low); }

.risk-badge.pending {
    background: rgba(156, 163, 175, 0.15);
    color: var(--text-muted, #9ca3af);
}

.risk-badge.pending::before { background: var(--text-muted, #9ca3af); }

/* Status badge for inline status indicators */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.status-badge.pending {
    background: rgba(156, 163, 175, 0.2);
    color: var(--text-muted, #9ca3af);
}

/* Score badge for no response */
.score-badge.no-response {
    background: rgba(156, 163, 175, 0.1);
    color: var(--text-muted, #9ca3af);
    font-style: italic;
}

/* Row styling for non-responders */
tr.no-response {
    opacity: 0.7;
}

tr.no-response:hover {
    opacity: 1;
}

/* Card styling for pending companies */
.company-card.pending {
    border-color: var(--border-color);
    opacity: 0.8;
}

.company-card.pending:hover {
    opacity: 1;
}

.company-card.pending .card-header {
    background: rgba(156, 163, 175, 0.1);
}

/* Pending notice in cards */
.pending-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted, #9ca3af);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.pending-notice svg {
    flex-shrink: 0;
}

/* Issue tag for pending status */
.issue-tag.pending {
    background: rgba(156, 163, 175, 0.1);
    border-color: rgba(156, 163, 175, 0.3);
    color: var(--text-muted, #9ca3af);
    font-style: italic;
}

.key-issues {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.issue-tag {
    padding: 0.25rem 0.625rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.btn-view-details {
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-view-details:hover {
    background: var(--color-info);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-view-details-secondary {
    background: white;
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    padding: 0.5rem 1.25rem;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin-left: 0.5rem;
}

.btn-view-details-secondary:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Card action buttons */
.btn-card-report {
    flex: 1;
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 0.625rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-card-report:hover {
    background: var(--color-info);
    transform: translateY(-1px);
}

.btn-card-quick {
    flex: 1;
    background: white;
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    padding: 0.625rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-card-quick:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-1px);
}

/* ===================================
   Rankings Grid View
   =================================== */
.rankings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.company-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.company-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    transition: var(--transition);
}

.company-card.critical::before { background: var(--color-critical); }
.company-card.high::before { background: var(--color-high); }
.company-card.medium::before { background: var(--color-medium); }
.company-card.low::before { background: var(--color-low); }

.company-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: currentColor;
}

.company-card.critical:hover { border-color: var(--color-critical); }
.company-card.high:hover { border-color: var(--color-high); }
.company-card.medium:hover { border-color: var(--color-medium); }
.company-card.low:hover { border-color: var(--color-low); }

.score-value {
    font-size: 2rem;
    font-weight: 700;
}

/* ===================================
   Domain Cards
   =================================== */
.domain-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.domain-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: var(--transition);
}

.domain-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.domain-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.domain-score {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.domain-progress {
    width: 100%;
    height: 8px;
    background: var(--bg-primary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.domain-progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease-out;
}

.domain-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.domain-stat {
    text-align: center;
}

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

.domain-stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ===================================
   Questions Grid
   =================================== */
.questions-grid {
    display: grid;
    gap: 1.5rem;
}

.question-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: var(--transition);
}

.question-card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-sm);
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.question-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--accent-primary);
    color: white;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.question-text {
    flex: 1;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.5;
}

.question-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.question-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-card);
    border-radius: var(--border-radius-sm);
}

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

.question-stat-value {
    font-weight: 600;
    color: var(--text-primary);
}

.question-distribution {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: var(--border-radius-sm);
}

.distribution-bar {
    display: flex;
    height: 32px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.distribution-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    transition: var(--transition);
    cursor: pointer;
}

.distribution-segment:hover {
    opacity: 0.8;
}

.distribution-segment.excellent { background: var(--color-low); }
.distribution-segment.good { background: var(--accent-primary); }
.distribution-segment.fair { background: var(--color-medium); }
.distribution-segment.poor { background: var(--color-high); }
.distribution-segment.none { background: var(--color-critical); }

.distribution-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

/* ===================================
   Modal Styles
   =================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    overflow-y: auto;
    padding: 2rem;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.modal-body {
    padding: 2rem;
}

.company-overview {
    margin-bottom: 2rem;
}

.company-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.domain-scores-detail {
    margin-bottom: 2rem;
}

.domain-scores-detail h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.domain-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.domain-bar-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.domain-bar-label {
    flex: 0 0 180px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.domain-bar-container {
    flex: 1;
    height: 32px;
    background: var(--bg-secondary);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.domain-bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.6s ease-out;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0.75rem;
}

.domain-bar-score {
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
}

.question-responses h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.responses-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.response-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

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

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

.response-score {
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-left: 1rem;
}

.response-answer {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1200px) {
    .overview-charts {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .dashboard-header {
        padding: 1.5rem;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-stats {
        width: 100%;
        overflow-x: auto;
    }

    .dashboard-main {
        padding: 1.5rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .overview-charts {
        grid-template-columns: 1fr;
    }

    .rankings-table {
        font-size: 0.85rem;
    }

    .rankings-table th,
    .rankings-table td {
        padding: 0.75rem 0.5rem;
    }

    .modal {
        padding: 1rem;
    }

    .modal-content {
        max-height: 95vh;
    }

    .modal-header,
    .modal-body {
        padding: 1.5rem;
    }
}

/* ===================================
   Utility Classes
   =================================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }

/* ===================================
   Scrollbar Styling
   =================================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}


/* ========================================
   FIRST-RUN MODAL STYLES
   ======================================== */

.first-run-modal {
    max-width: 600px;
}

.first-run-intro {
    text-align: center;
    margin-bottom: 24px;
}

.first-run-icon {
    color: var(--accent-primary);
    margin-bottom: 16px;
}

.first-run-icon svg {
    stroke: var(--accent-primary);
}

.first-run-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.first-run-privacy {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-sm);
    padding: 16px 20px;
    margin-bottom: 24px;
}

.first-run-privacy h3 {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.first-run-privacy ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.first-run-privacy li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}

.first-run-privacy li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-low);
}

.first-run-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.option-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-card:hover {
    border-color: var(--accent-primary);
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.option-icon {
    color: var(--accent-primary);
    margin-bottom: 12px;
}

.option-icon svg {
    stroke: var(--accent-primary);
}

.option-card h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.option-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* Sample Data Banner */
.sample-data-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--color-medium);
    color: var(--text-primary);
    padding: 8px 16px;
    text-align: center;
    font-size: 0.85rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.sample-data-banner button {
    background: none;
    border: none;
    color: var(--text-primary);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0;
}

.sample-data-banner a {
    color: var(--text-primary);
}

.sample-data-banner .banner-close {
    position: absolute;
    right: 16px;
    font-size: 1.2rem;
    text-decoration: none;
}

@media (max-width: 600px) {
    .first-run-options {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Response Rate Section
   =================================== */
.response-rate-section {
    margin-top: 2rem;
}

.response-rate-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.response-rate-content {
    display: grid;
    grid-template-columns: 200px 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.response-rate-chart {
    display: flex;
    justify-content: center;
    align-items: center;
}

.rate-circle {
    position: relative;
    width: 160px;
    height: 160px;
}

.rate-circle svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.rate-circle-bg {
    fill: none;
    stroke: var(--bg-primary);
    stroke-width: 12;
}

.rate-circle-fill {
    fill: none;
    stroke: var(--color-low);
    stroke-width: 12;
    stroke-linecap: round;
    transition: stroke-dasharray 0.6s ease-out;
}

.rate-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.rate-percentage {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-low);
    display: block;
}

.rate-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rate-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rate-stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border-radius: var(--border-radius-sm);
}

.rate-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rate-stat-icon.responded {
    background: rgba(34, 197, 94, 0.15);
    color: var(--color-low);
}

.rate-stat-icon.no-response {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-critical);
}

.rate-stat-icon.total {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-primary);
}

.rate-stat-info {
    flex: 1;
}

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

.rate-stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.non-responders-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.non-responders-list h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.non-responder-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    color: var(--text-primary);
}

.non-responder-item svg {
    color: var(--color-critical);
    flex-shrink: 0;
}

.all-responded-notice {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: var(--border-radius-sm);
    color: var(--color-low);
    font-size: 0.9rem;
}

/* Response Rate Responsive */
@media (max-width: 1024px) {
    .response-rate-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .rate-stats {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .rate-stat-item {
        flex: 1;
        min-width: 140px;
    }

    .non-responders-list {
        align-items: center;
    }

    .non-responders-list h4 {
        text-align: center;
    }
}

@media (max-width: 600px) {
    .rate-stats {
        flex-direction: column;
    }

    .rate-stat-item {
        min-width: auto;
    }
}

/* ===========================
   No Data Prompt (shared)
   =========================== */

/* ===================================
   Light Mode Enhancements
   Colors handled by CSS variables in base.css
   Only shadow adjustments needed here
   =================================== */
@media (prefers-color-scheme: light) {
    .dashboard-container {
        /* Lighter shadows for light mode */
        --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
        --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
        --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.06);
    }
}
