:root {
    --primary-color: #009677;
    --secondary-color: #ff00dd;
    --danger-color: #ff0000;
    --om-onyx: #282828;
    --om-heritage: #009677;
    --om-fresh: #50B848;
    --om-future: #8DC63F;
    --grey-1: #58595B;
    --grey-2: #808285;
    --grey-3: #A7A9AC;
    --grey-4: #DCDDDE;
    --grey-5: #F1F2F2;
    --orange: #F37021;
    --pink: #e81f63;
    --blue: #00c0e8;
    --amber: #fbb715;
    --green: #8DC63F;
    --red: #e3292b;
    --border-color: #E5E5E5;
    --background-color: #F5F5F5;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --elevation-2: 0 2px 4px rgba(0, 0, 0, 0.1);
    --font-family: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--om-onyx);
    background-color: var(--background-color);
}

a {
    text-decoration: inherit;
    color: inherit;
}

.fs-7 {
    font-size: 0.875rem;
}

.hidden {
    display: none !important;
}

.for-print-only {
    display: none;
}

.landing-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #009677 0%, #8DC63F 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.logo-container {
    margin-bottom: 30px;
}

    .logo-container img {
        height: 60px;
        width: auto;
    }

.login-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--om-onyx);
    margin-bottom: 10px;
}

.login-subtitle {
    font-size: 16px;
    color: var(--grey-1);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

    .form-group label {
        display: block;
        font-weight: 600;
        color: var(--om-onyx);
        margin-bottom: 0.5rem;
        font-size: 1rem;
    }

    .form-group input {
        width: 100%;
        padding: 15px;
        border: 2px solid #e1e5e9;
        border-radius: 10px;
        font-size: 16px;
        transition: border-color 0.3s ease;
        box-sizing: border-box;
        font-family: 'Montserrat', sans-serif;
    }

        .form-group input:focus {
            outline: none;
            border-color: #667eea;
        }

    .form-group select {
        width: 100%;
        padding: 0.75rem;
        border: 2px solid #e1e5e9;
        border-radius: 10px;
        font-size: 0.9rem;
        transition: border-color 0.3s ease;
        box-sizing: border-box;
        font-family: 'Montserrat', sans-serif;
    }

.login-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #019676 0%, #8DC63F 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
    display: flex;
    justify-content: center;
}

    .login-button:hover {
        transform: translateY(-2px);
    }

    .login-button:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

.error-message {
    color: #e74c3c;
    font-weight: 500;
    font-size: 14px;
    display: none;
}

.login-card .error-message {
    margin-top: 0;
}

.field-error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

    .field-error.show {
        display: block;
    }

.form-group.has-error input {
    border-color: #e74c3c;
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.25);
}

    .form-group.has-error input:focus {
        border-color: #e74c3c;
        box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.25);
    }

.login-button {
    position: relative;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .login-button .loading-spinner {
        display: none;
    }

    .login-button:disabled {
        opacity: 0.7;
        cursor: not-allowed;
    }

.back-link {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

    .back-link:hover {
        text-decoration: underline;
    }

.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.demo-note {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    font-size: 14px;
    color: var(--grey-1);
}

    .demo-note strong {
        color: #495057;
    }

.input-hint {
    font-size: 0.8rem;
    color: var(--grey-1);
    margin-bottom: 0.5rem;
    font-style: italic;
    line-height: 1.4;
}

h3 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
    background: #FFF;
    margin: -2rem -2rem 0 -2rem;
    padding: 0.25rem 2rem;
}

.header-top {
    margin-bottom: 16px;
}

.logo {
    display: flex;
    width: 200px;
}

    .logo img {
        height: 75px;
    }

.nav-container {
    display: flex;
    justify-content: center;
    /* max-width: 666px; */
    margin: 0 auto;
}

.nav-tabs {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1rem;
    border-bottom: none;
}

.nav-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

    .nav-tab a {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 12px 20px;
        cursor: pointer;
        border-radius: 8px;
        transition: all 0.2s ease;
        font-weight: 500;
        color: var(--grey-3);
        font-size: 0.8rem;
        position: relative;
    }

        .nav-tab a:hover {
            background: rgba(0, 150, 119, 0.1);
            color: var(--primary-color);
        }

    .nav-tab.active a {
        color: var(--primary-color);
        background: rgba(0, 150, 119, 0.15);
        font-weight: 600;
    }

    .nav-tab a .material-icons {
        font-size: 18px;
    }

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    width: 250px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

    .section-header h1 {
        margin: 0;
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--om-onyx);
        line-height: 1.6;
    }

/* Survey Overlay */
.survey-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.3s ease-out;
}

.survey-header {
    background: white;
    padding: var(--spacing-md) var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: var(--elevation-2);
}

    .survey-header h2 {
        margin: 0;
        color: var(--primary-color);
        font-size: 1.25rem;
        font-weight: 500;
    }

.close-survey {
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

    .close-survey:hover {
        background: #f5f5f5;
    }

    .close-survey .material-icons {
        font-size: 24px;
        color: var(--grey-1);
    }

.survey-overlay iframe {
    flex: 1;
    border: none;
    background: white;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.back-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--primary-color);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s ease;
}

    .back-button:hover {
        background: #007a5a;
    }

    .back-button .material-icons {
        font-size: 20px;
    }

/* Removed - now consolidated in button system */
header nav {
    flex: 1;
}

    header nav ul {
        display: flex;
        list-style: none;
        gap: 20px;
    }

    header nav li {
        cursor: pointer;
        padding: 5px 15px;
    }

.metrics-grid {
    display: grid;
    /*    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));*/
    grid-template-columns: 1fr 3fr;
    gap: 20px;
    margin-bottom: 30px;
}

.metric-card {
    background: white;
    padding: 24px 24px 0 24px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

    .metric-card h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
    }

.metric-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.metric-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.metric-footer {
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    padding: 16px 0;
    text-align: center;
}

.metric-progress {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding-bottom: 2rem;
}

.circular-progress {
    position: relative;
    width: 150px;
    height: 150px;
}

    .circular-progress .percentage {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 24px;
        font-weight: bold;
    }

.details {
    text-align: left;
    font-size: 14px;
    color: var(--grey-1);
}

.trend {
    font-size: 13px;
    color: var(--grey-1);
}

    .trend span {
        font-weight: 700;
    }

    .trend .material-icons {
        font-size: 20px;
        vertical-align: middle;
        margin-right: 2px;
    }

.trend-positive {
    color: var(--primary-color);
}

.trend-negative {
    color: var(--danger-color);
}

.trend-neutral {
    color: var(--grey-3);
}

.trend-value {
    font-weight: 600;
    color: var(--om-onyx);
}

.trend-label {
    color: var(--grey-1);
    font-weight: 400;
}

.reliability-indicator {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.intro-text {
    color: var(--grey-1);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.reliability-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

    .reliability-status strong {
        font-weight: 700;
        font-size: 1.125rem;
    }

.status-icon {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

    .status-icon.high {
        background: #00AE4E;
    }

    .status-icon.moderate {
        background: #FFB800;
    }

    .status-icon.low {
        background: #FF0000;
    }

.reliability-bar {
    height: 8px;
    background: #E5E5E5;
    border-radius: 4px;
    overflow: hidden;
}

.reliability-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.reliability-thresholds {
    position: relative;
    margin: 4px 0 0.5rem;
    height: 20px;
}

.threshold-marker {
    position: absolute;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.marker-line {
    width: 1px;
    height: 8px;
    background: var(--border-color);
}

.threshold-label {
    font-size: 12px;
    color: var(--grey-1);
}

.reliability-info {
    text-align: center;
    font-size: 13px;
    color: var(--grey-1);
    line-height: 1.4;
    border-top: 1px solid var(--border-color);
}

    .reliability-info strong {
        color: var(--om-onyx);
    }

.reliability-tooltip {
    display: inline-flex;
    align-items: center;
    cursor: help;
    position: relative;
}

    .reliability-tooltip .material-icons {
        font-size: 16px;
        color: var(--grey-1);
    }

    .reliability-tooltip:hover .tooltip-content {
        display: block;
    }

.tooltip-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 1;
    line-height: 1.4;
}

    .tooltip-content::after {
        content: '';
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        border-width: 4px;
        border-style: solid;
        border-color: transparent transparent rgba(0, 0, 0, 0.8) transparent;
    }

.dimensions-section {
    background: white;
    padding: 24px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

    .dimensions-section h3 {
        font-size: 16px;
        font-weight: 600;
        color: var(--om-onyx);
        margin-bottom: 24px;
    }

.dimensions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    width: 100%;
}

.dimension-header {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.dimension-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--om-onyx);
    margin-right: 8px;
    line-height: 1.1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dimension-color-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

    .dimension-color-indicator.large {
        width: 16px;
        height: 16px;
    }

.dimension-warning {
    color: var(--secondary-color);
    flex-shrink: 0;
}

.dimension-score {
    font-size: 42px;
    font-weight: 700;
    color: var(--om-onyx);
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    line-height: 42px;
}

.progress-fill.excellent {
    background: #00AE4E;
}

.progress-fill.good {
    background: #FFB800;
}

.progress-fill.warning {
    background: #FF0000;
}

.progress-fill.critical {
    background: #AC0000;
}

.progress-fill.red {
    background-color: #FF2D2D;
}

.progress-fill.amber {
    background-color: #FFC300;
}

.progress-fill.green {
    background-color: #8DC63F;
}

.dimension-stats {
    font-size: 0.75rem;
    color: var(--grey-1);
}

    .dimension-stats.scale {
        font-size: 1.25rem;
        margin-left: 0.5rem;
    }

    .dimension-stats span {
        display: flex;
        align-items: center;
        gap: 4px;
    }

        .dimension-stats span:last-child {
            border-top: 1px solid var(--border-color);
            margin-top: 4px;
            padding-top: 4px;
            display: flex;
            justify-content: center;
        }

    .dimension-stats .material-icons {
        font-size: 16px;
        vertical-align: middle;
        margin-right: 2px;
    }

    .dimension-stats .trend-positive {
        color: var(--primary-color);
    }

    .dimension-stats .trend-negative {
        color: var(--danger-color);
    }

    .dimension-stats .trend-neutral {
        color: var(--grey-3);
    }

.progress-bar {
    width: 100%;
    height: 8px;
    background: #F5F5F5;
    border-radius: 4px;
    overflow: hidden;
    margin: 8px 0 0 0;
    position: relative;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

    .progress-fill.low {
        background: var(--primary-color);
    }

    .progress-fill.medium {
        background: var(--secondary-color);
    }

    .progress-fill.high {
        background: var(--danger-color);
    }

.statements-section {
    display: flex;
    flex-direction: column;
    margin-top: 2rem;
}

/* Dimension Statements Sections */
.dimension-statements-section {
    margin-bottom: 40px;
    padding: 25px;
    background: #FFF;
    border-radius: 0 0 12px 12px;
}

.dimension-header h4 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #282828;
}

.statements-header {
    width: 100%;
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.statements-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
}

@media (max-width: 900px) {
    .statements-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.all-statements {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Two Column Statements Layout */
.statements-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.statements-column {
    display: flex;
    flex-direction: column;
}

.statements-column-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--om-onyx);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

@media (max-width: 900px) {
    .statements-columns {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Statements Legend */
.statements-legend {
    background: white;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 20px;
    position: sticky;
    top: 1rem;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: fit-content;
}

.legend-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--om-onyx);
    flex-shrink: 0;
}

.legend-items {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.statements-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--grey-1);
}

.statements-legend .legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    flex-shrink: 0;
}

    .statements-legend .legend-color.excellent {
        background-color: #00AE4E;
    }

    .statements-legend .legend-color.good {
        background-color: #FFB800;
    }

    .statements-legend .legend-color.warning {
        background-color: #FF9800;
    }

    .statements-legend .legend-color.critical {
        background-color: #FF6B6B;
    }

.legend-color.red {
    background-color: #FF2D2D;
}

.legend-color.amber {
    background-color: #FFC300;
}

.legend-color.green {
    background-color: #8DC63F;
}

.bg-green {
    background-color: var(--green)
}

.bg-amber {
    background-color: var(--amber)
}

.bg-red {
    background-color: var(--red)
}

@media (max-width: 768px) {
    .statements-legend {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 16px;
        top: 60px;
    }

    .legend-items {
        gap: 12px;
    }

    .statements-legend .legend-item {
        font-size: 0.75rem;
    }

    .dimension-statements-section {
        margin-bottom: 30px;
        padding: 20px;
    }

    .dimension-header h4 {
        font-size: 1.1rem;
    }

    .dimension-description {
        font-size: 0.85rem;
    }
}

.statement-bar {
    margin: 16px 0;
}

.statement-text {
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--om-onyx);
}

.statement-progress {
    display: flex;
    height: 24px;
    border-radius: 4px;
    overflow: hidden;
}

    .statement-progress div {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: 600;
        color: white;
        transition: width 0.3s ease;
    }

    .statement-progress .agree {
        background: #00AE4E;
    }

    .statement-progress .unsure {
        background: #FFB800;
    }

    .statement-progress .disagree {
        background: #FF0000;
    }

.statement-legend {
    display: flex;
    gap: 16px;
    margin-top: 8px;
    font-size: 12px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

    .legend-color.agree {
        background: #00AE4E;
    }

    .legend-color.unsure {
        background: #FFB800;
    }

    .legend-color.disagree {
        background: #FF0000;
    }

.sentiment-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

.comment-sentiment, .sentiment-analysis {
    background: white;
    padding: 24px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.comment-sentiment {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

    .comment-sentiment h3 {
        align-self: flex-start;
    }

.sentiment-chart {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.sentiment-legend {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.legend-item {
    display: flex;
    align-items: first baseline;
    gap: 8px;
    font-size: 14px;
    color: var(--om-onyx);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

    .legend-dot.positive {
        background-color: #00ae4e;
    }

    .legend-dot.neutral {
        background-color: #ffb800;
    }

    .legend-dot.negative {
        background-color: #ff0000;
    }

.legend-value {
    font-weight: 600;
    margin-left: 4px;
}

    .legend-value sup {
        font-size: 10px;
        margin-right: 4px;
    }

#sentimentAnalysis {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Sentiment Analysis Styles */
.analysis-section {
    flex: 1;
    min-width: 300px;
}

    .analysis-section h4 {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 16px;
        color: var(--om-onyx);
    }

.analysis-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.analysis-item {
    margin-bottom: 16px;
}

.analysis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.theme-name {
    font-weight: 500;
    color: var(--om-onyx);
}

.comment-count {
    color: var(--text-secondary);
    font-size: 14px;
}

    .comment-count .percentage {
        margin-left: 8px;
    }

        .comment-count .percentage sup {
            font-size: 10px;
            margin-right: 4px;
        }

.analysis-bar {
    height: 8px;
    background: #F5F5F5;
    border-radius: 4px;
    overflow: hidden;
}

.analysis-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

    .analysis-bar-fill.positive {
        background: #00ae4e;
    }

    .analysis-bar-fill.negative {
        background: #ff0000;
    }

@media (max-width: 768px) {
    .sentiment-section {
        grid-template-columns: 1fr;
    }

    .sentiment-legend {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Responsive layout for 2 dimensions */
@media (min-width: 768px) {
    .dimensions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dimensions-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 1rem;
    }

    .metrics-grid,
    .dimensions-grid,
    .statements-section,
    .sentiment-section {
        gap: 15px;
    }

    header {
        flex-direction: column;
        gap: 12px;
        padding: 12px 1rem;
    }

    .survey-button {
        width: 100%;
        justify-content: center;
    }

    .nav-container {
        max-width: 100%;
        padding: 0 1rem;
    }

    .nav-tabs {
        width: 100%;
        flex-wrap: wrap;
        gap: 0;
    }

    .nav-tab {
        flex: 1;
        min-width: 120px;
        padding: 10px 16px;
        font-size: 0.85rem;
    }

        .nav-tab .material-icons {
            font-size: 16px;
        }

    .section-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .filter-toggle {
        margin-right: 0;
        width: 100%;
        justify-content: center;
    }
}

/* Filter Menu Styles */
.filter-menu {
    position: fixed;
    top: 0;
    left: -90%;
    width: 90%;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
}

    .filter-menu.active {
        left: 0;
    }

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

    .filter-header h2 {
        font-size: 20px;
        font-weight: 600;
        margin: 0;
    }

.close-filters {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--om-onyx);
}

.filter-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.filter-content-scrollable {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.filter-section:not(:last-of-type) {
    margin-bottom: 32px;
}

.filter-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--om-onyx);
}

.filter-group:not(:last-of-type) {
    margin-bottom: 24px;
}

.filter-group h4 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--om-onyx);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .filter-options label {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        cursor: pointer;
    }

    .filter-options input[type="checkbox"] {
        width: 16px;
        height: 16px;
        border: 2px solid var(--border-color);
        border-radius: 4px;
        cursor: pointer;
    }

/* Filter Dropdown Styles */
.filter-dropdown {
    position: relative;
    width: 100%;
}

.filter-dropdown-btn {
    width: 100%;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: var(--om-onyx);
    transition: border-color 0.2s ease;
}

    .filter-dropdown-btn:hover {
        border-color: var(--primary-color);
    }

    .filter-dropdown-btn.active {
        border-color: var(--primary-color);
        background: #f8f9fa;
    }

    .filter-dropdown-btn .material-icons {
        font-size: 18px;
        transition: transform 0.2s ease;
    }

    .filter-dropdown-btn.active .material-icons {
        transform: rotate(180deg);
    }

.filter-dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

    /* Dropup styles - when dropdown opens upward */
    .filter-dropdown-content.dropup {
        top: auto;
        bottom: 100%;
        border-top: 1px solid var(--border-color);
        border-bottom: none;
        border-radius: 6px 6px 0 0;
        box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
    }

    .filter-dropdown-content.active {
        display: block;
    }

    .filter-dropdown-content label {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 16px;
        font-size: 14px;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }

        .filter-dropdown-content label:hover {
            background: #f8f9fa;
        }

    .filter-dropdown-content input[type="checkbox"] {
        width: 16px;
        height: 16px;
        border: 2px solid var(--border-color);
        border-radius: 4px;
        cursor: pointer;
    }

.select-all-option {
    font-weight: 500;
    background: #f8f9fa;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
}

.filter-dropdown-content::-webkit-scrollbar {
    width: 6px;
}

.filter-dropdown-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.filter-dropdown-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

    .filter-dropdown-content::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }

.filter-actions {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
}

/* Removed - now consolidated in button system */

/* Adjust container padding when filter menu is open */
.container.filter-active {
    padding-left: 0;
    transition: padding-left 0.3s ease;
}

@media (max-width: 768px) {
    .filter-menu {
        width: 100%;
        left: -100%;
    }

    .container.filter-active {
        padding-left: 32px;
    }
}

/* Desktop responsiveness for filter menu - ensure proper sizing for different desktop screen sizes */
@media (min-width: 1200px) {
    .filter-menu {
        width: 85%;
        left: -85%;
    }
}

@media (min-width: 1400px) {
    .filter-menu {
        width: 80%;
        left: -80%;
    }
}

/* Tablet responsiveness - ensure filters work well on tablets and up */
@media (min-width: 768px) and (max-width: 1199px) {
    .filter-menu {
        width: 95%;
        left: -95%;
    }

    .filters-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 16px;
    }
}

/* Styles for new filter display elements */
.single-filter-display {
    font-size: 0.9rem;
    color: var(--primary-color);
    background: #e8f5e8;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    padding: 4px 8px;
    margin-left: 12px;
    font-weight: 500;
}

.applied-filters-list {
    max-height: 300px;
    overflow-y: auto;
}

.applied-filter-item {
    padding: 8px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    margin-bottom: 8px;
    background: #f8f9fa;
    font-size: 0.9rem;
}

/* Ensure filter menu content scrolls properly with new layout */
.filter-content-scrollable {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    padding-right: 8px;
}

/* Ensure proper spacing for filter cards within offcanvas */
.filter-menu .report-filters-card {
    margin-bottom: 1rem;
}

/* Enhanced styling for filter summary elements */
.preview-item {
    font-size: 0.85rem;
    color: var(--text-muted, #666);
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    /*max-width: 150px;*/
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    cursor: help;
}

.chart-tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    pointer-events: none;
    z-index: 1000;
    white-space: nowrap;
}

.sentiment-chart {
    position: relative;
}

.sentiment-legend {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    font-size: 14px;
}

.legend-item span {
    font-weight: 500;
}

.metric-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .metric-header h3 {
        margin-bottom: 0;
    }

/* Footer Styles */
.site-footer {
    background-color: white;
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 3rem;
}

    .site-footer .container {
        padding-top: 0;
        padding-bottom: 0;
    }

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    color: var(--om-onyx);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

    .footer-links a {
        color: var(--om-onyx);
        text-decoration: none;
        font-size: 0.875rem;
        transition: color 0.2s ease;
    }

        .footer-links a:hover {
            color: var(--primary-color);
        }

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Loading Overlay Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

    .loading-overlay.active {
        display: flex;
    }

.loading-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/*.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #00857d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}*/

.loading-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: #333;
}

/* Filtering and Pagination Classes */
.comment-card.filtered-out,
.comment-card.paginated-out {
    display: none !important;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: var(--om-onyx);
    font-size: 1rem;
    font-weight: 500;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Active Filter Styles */
.active-filters {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--om-onyx);
    flex-wrap: wrap;
}

.filter-tag {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
}

    .filter-tag .remove-filter {
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2);
        font-size: 12px;
        transition: background-color 0.2s ease;
    }

        .filter-tag .remove-filter:hover {
            background: rgba(255, 255, 255, 0.4);
        }

/* Update title and filter styles */
.title-with-filters {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

    .title-with-filters h1 {
        margin: 0;
        font-size: 1.5rem;
    }

/* Removed - now consolidated in button system */

/* Error Message Styles */

.error-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

    .error-content h3 {
        color: var(--danger-color);
        margin-bottom: 1rem;
        font-size: 1.25rem;
    }

    .error-content p {
        margin-bottom: 1rem;
        color: var(--om-onyx);
    }

    .error-content ul {
        margin-bottom: 1.5rem;
        padding-left: 1.5rem;
    }

    .error-content li {
        margin-bottom: 0.5rem;
        color: var(--om-onyx);
    }

    .error-content button {
        width: 100%;
    }

/* Progress bar colors for 1-6 scale */
.progress-fill.progress-success {
    background-color: #00AE4E;
}

.progress-fill.progress-warning {
    background-color: #FFB800;
}

.progress-fill.progress-danger {
    background-color: #ff0000;
}

/* Dimension descriptions */
.dimension-description {
    font-size: 0.875rem;
    color: var(--grey-1);
    margin-bottom: 1rem;
    line-height: 1.4;
    flex-grow: 1;
}

/* Section descriptions */
.section-description {
    font-size: 0.875rem;
    color: var(--grey-1);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

/* Score scale info */
.score-scale-info {
    text-align: center;
    margin-top: 0.5rem;
}

.scale-label {
    font-size: 0.75rem;
    color: var(--grey-2);
    background: var(--grey-5);
    padding: 2px 8px;
    border-radius: 4px;
}

.statements-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

    .statements-grid h4 {
        font-size: 1rem;
        margin-bottom: 1rem;
        color: var(--om-onyx);
    }

.statement-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: var(--elevation-2);
}

.statement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.statement-rank {
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

.statement-dimension {
    font-size: 0.75rem;
    color: var(--grey-2);
    background: var(--grey-5);
    padding: 2px 6px;
    border-radius: 4px;
}

.statement-text {
    font-size: 0.875rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: var(--om-onyx);
}

.statement-score {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.5rem;
}

.score-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--om-onyx);
}

.score-scale {
    font-size: 0.875rem;
    color: var(--grey-2);
}

/* Statement Trend Indicators - matching dimension stats style */
.statement-trend {
    font-size: 0.75rem;
    color: var(--grey-2);
    display: flex;
    align-items: center;
    gap: 2px;
}

    .statement-trend .material-icons {
        font-size: 0.875rem;
        margin-right: 2px;
    }

/* Responsive adjustments for statements */
@media (max-width: 768px) {
    .statements-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .statement-item {
        padding: 0.75rem;
    }

    .statement-text {
        font-size: 0.8rem;
    }
}

/* More margin below section headings */

.dimensions-section h3,
.statements-section h3 {
    margin-bottom: 0.5rem;
}

/* Consistent card spacing for dimension items */
.dimension-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem 1rem 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Dimensions grid: 2 columns on desktop, 1 on mobile */
.dimensions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    width: 100%;
}

@media (max-width: 768px) {
    .dimensions-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Reports Page Styles */
.report-configuration {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 20px;
}

.config-section {
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

    .config-section h3 {
        margin: 0 0 20px 0;
        color: var(--om-onyx);
        font-size: 1.1rem;
        font-weight: 600;
    }

.report-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.report-type-card {
    padding: 20px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

    .report-type-card:hover {
        border-color: var(--primary-color);
        background: #f8f9fa;
    }

    .report-type-card.selected {
        border-color: var(--primary-color);
        background: #e8f5e8;
    }

    .report-type-card i {
        color: var(--primary-color);
        font-size: 28px;
        margin-bottom: 12px;
    }

    .report-type-card h4 {
        margin: 0 0 8px 0;
        font-size: 1rem;
        color: var(--om-onyx);
        font-weight: 600;
    }

    .report-type-card p {
        margin: 0;
        font-size: 0.85rem;
        color: var(--grey-1);
        line-height: 1.4;
    }

    .report-type-card.featured {
        border: 2px solid var(--primary-color);
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        position: relative;
        transform: scale(1.02);
    }

        .report-type-card.featured:hover {
            transform: scale(1.05);
            box-shadow: 0 8px 25px rgba(0, 150, 119, 0.15);
        }

.featured-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 150, 119, 0.3);
}

.card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.feature-tag {
    background: rgba(0, 150, 119, 0.1);
    color: var(--primary-color);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    border: 1px solid rgba(0, 150, 119, 0.2);
}

.segmentation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.segmentation-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

    .segmentation-card h4 {
        margin: 0 0 16px 0;
        color: var(--om-onyx);
        font-size: 1rem;
        font-weight: 600;
    }

.business-unit-filters {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.select-all-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--om-onyx);
    cursor: pointer;
    padding: 8px 0;
    border-bottom: 1px solid #e5e5e5;
}

.business-unit-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.business-unit-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .business-unit-option:hover {
        background: white;
    }

.demographics-filters {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filter-group h5 {
    margin: 0 0 12px 0;
    color: var(--om-onyx);
    font-size: 0.9rem;
    font-weight: 600;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .filter-options label {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.85rem;
        color: var(--om-onyx);
        cursor: pointer;
        padding: 4px 0;
    }

.export-config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.export-config-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

    .export-config-card h4 {
        margin: 0 0 16px 0;
        color: var(--om-onyx);
        font-size: 1rem;
        font-weight: 600;
    }

.format-options, .include-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .format-options label, .include-options label {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.85rem;
        color: var(--om-onyx);
        cursor: pointer;
    }

.report-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 20px 0;
}

    .report-actions button {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 12px 24px;
        border: none;
        border-radius: 6px;
        font-size: 0.9rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .report-actions .button-secondary {
        background: #f8f9fa;
        color: var(--om-onyx);
        border: 1px solid #e5e5e5;
    }

        .report-actions .button-secondary:hover {
            background: #e9ecef;
        }

    .report-actions .button-primary {
        background: var(--primary-color);
        color: white;
    }

        .report-actions .button-primary:hover {
            background: #008a6b;
        }

/* Responsive Design */
@media (max-width: 768px) {
    .report-configuration {
        margin: 10px;
        padding: 15px;
    }

    .config-section {
        padding: 20px;
    }

    .report-type-grid {
        grid-template-columns: 1fr;
    }

    .segmentation-grid {
        grid-template-columns: 1fr;
    }

    .export-config-grid {
        grid-template-columns: 1fr;
    }

    .report-actions {
        flex-direction: column;
        align-items: center;
    }

        .report-actions button {
            width: 100%;
            max-width: 300px;
            justify-content: center;
        }
}

/* Report Content Styles */
.report-content {
    line-height: 1.6;
}

.report-section {
    margin-bottom: 30px;
}

    .report-section h3 {
        color: var(--om-onyx);
        font-size: 1.1rem;
        font-weight: 600;
        margin-bottom: 15px;
        padding-bottom: 8px;
        border-bottom: 2px solid var(--primary-color);
    }

    .report-section h4 {
        color: var(--om-onyx);
        font-size: 1rem;
        font-weight: 600;
        margin: 20px 0 10px 0;
    }

.report-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

/*.metric-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;*/
/* border-left: 4px solid var(--primary-color); */
/*}

    .metric-card h5 {
        margin: 0 0 8px 0;
        color: var(--grey-1);
        font-size: 0.9rem;
        font-weight: 500;
    }

    .metric-card .value {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--primary-color);
    }*/

.report-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

    .report-table th,
    .report-table td {
        padding: 12px 16px;
        text-align: left;
        border-bottom: 1px solid #e5e5e5;
    }

    .report-table th {
        background: #f8f9fa;
        font-weight: 600;
        color: var(--om-onyx);
        font-size: 0.9rem;
    }

    .report-table td {
        font-size: 0.85rem;
        color: var(--om-onyx);
    }

    .report-table tr:hover {
        background: #f8f9fa;
    }

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.insight-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #FFB800;
}

    .insight-card h5 {
        margin: 0 0 10px 0;
        color: var(--om-onyx);
        font-size: 0.95rem;
        font-weight: 600;
    }

    .insight-card p {
        margin: 0;
        color: var(--grey-1);
        font-size: 0.85rem;
        line-height: 1.5;
    }

.recommendations-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

    .recommendations-list li {
        background: #f8f9fa;
        padding: 15px;
        margin-bottom: 10px;
        border-radius: 6px;
        border-left: 4px solid #00AE4E;
    }

        .recommendations-list li:last-child {
            margin-bottom: 0;
        }

.recommendation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.recommendation-category {
    font-weight: 600;
    color: var(--om-onyx);
    font-size: 0.9rem;
}

.recommendation-priority {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

    .recommendation-priority.high {
        background: #FFE6E6;
        color: #D32F2F;
    }

    .recommendation-priority.medium {
        background: #FFF3E0;
        color: #F57C00;
    }

    .recommendation-priority.low {
        background: #E8F5E8;
        color: #388E3C;
    }

.recommendation-action {
    color: var(--grey-1);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        height: 95%;
    }

    .modal-header {
        padding: 15px 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-footer {
        padding: 15px 20px;
        flex-direction: column;
    }

        .modal-footer button {
            width: 100%;
            justify-content: center;
        }

    .report-metrics {
        grid-template-columns: 1fr;
    }

    .insights-grid {
        grid-template-columns: 1fr;
    }
}

/* Enhanced Report Styles */
.report-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    border-left: 5px solid var(--primary-color);
}

    .report-header h3 {
        margin: 0 0 10px 0;
        color: var(--om-onyx);
        font-size: 1.4rem;
        font-weight: 700;
    }

.report-subtitle {
    margin: 0 0 15px 0;
    color: var(--grey-1);
    font-size: 0.95rem;
    line-height: 1.5;
}

.report-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--grey-1);
    font-size: 0.85rem;
}

    .meta-item .material-icons {
        font-size: 16px;
        color: var(--primary-color);
    }

/* Executive Summary */
.executive-summary {
    margin-bottom: 35px;
}

    .executive-summary h4 {
        margin-bottom: 20px;
        color: var(--om-onyx);
        font-size: 1.1rem;
        font-weight: 600;
    }

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.summary-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .summary-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    }

    .summary-card.primary {
        border-left: 4px solid var(--primary-color);
    }

    .summary-card.positive {
        border-left: 4px solid #00ae4e;
    }

    .summary-card.negative {
        border-left: 4px solid #ff0000;
    }

    .summary-card.neutral {
        border-left: 4px solid #ffb800;
    }

.summary-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
}

.summary-card.positive .summary-icon {
    background: #00ae4e;
}

.summary-card.negative .summary-icon {
    background: #ff0000;
}

.summary-card.neutral .summary-icon {
    background: #ffb800;
}

.summary-icon .material-icons {
    font-size: 24px;
}

.summary-content {
    flex: 1;
}

.summary-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--om-onyx);
    line-height: 1;
    margin-bottom: 4px;
}

.summary-label {
    font-size: 0.85rem;
    color: var(--grey-1);
    font-weight: 500;
}

/* Sentiment Overview */
.sentiment-overview {
    margin-bottom: 35px;
}

    .sentiment-overview h4 {
        margin-bottom: 20px;
    }

.sentiment-chart-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    align-items: start;
}

.sentiment-donut {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sentiment-center {
    position: absolute;
    text-align: center;
}

.sentiment-total {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--om-onyx);
    line-height: 1;
}

.sentiment-label {
    font-size: 0.8rem;
    color: var(--grey-1);
    margin-top: 2px;
}

.sentiment-breakdown {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.unit-sentiment {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.unit-name {
    font-weight: 600;
    color: var(--om-onyx);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.sentiment-bars {
    display: flex;
    height: 24px;
    border-radius: 12px;
    overflow: hidden;
    background: #e9ecef;
}

.sentiment-bar {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

    .sentiment-bar.positive {
        background: #00ae4e;
    }

    .sentiment-bar.neutral {
        background: #ffb800;
    }

    .sentiment-bar.negative {
        background: #ff0000;
    }

.bar-label {
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Trending Topics */
.trending-topics {
    margin-bottom: 35px;
}

    .trending-topics h4 {
        margin-bottom: 20px;
    }

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.topic-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: transform 0.2s ease;
}

    .topic-card:hover {
        transform: translateY(-2px);
    }

    .topic-card.positive {
        border-left: 4px solid #00ae4e;
    }

    .topic-card.negative {
        border-left: 4px solid #ff0000;
    }

.topic-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

    .topic-header h5 {
        margin: 0;
        font-size: 1rem;
        font-weight: 600;
        color: var(--om-onyx);
    }

.topic-trend {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

    .topic-trend.positive {
        background: #e8f5e8;
        color: #00ae4e;
    }

    .topic-trend.negative {
        background: #ffe6e6;
        color: #ff0000;
    }

.topic-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.topic-mentions {
    font-size: 0.85rem;
    color: var(--grey-1);
}

.topic-sentiment {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
}

    .topic-sentiment.positive {
        background: #e8f5e8;
        color: #00ae4e;
    }

    .topic-sentiment.negative {
        background: #ffe6e6;
        color: #ff0000;
    }

.topic-related {
    font-size: 0.8rem;
    color: #999;
}

/* Business Unit Analysis */
.unit-analysis {
    margin-bottom: 35px;
}

    .unit-analysis h4 {
        margin-bottom: 20px;
    }

.unit-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.unit-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.unit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

    .unit-header h5 {
        margin: 0;
        font-size: 1rem;
        font-weight: 600;
        color: var(--om-onyx);
    }

.unit-sentiment-score {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

    .unit-sentiment-score.positive {
        background: #e8f5e8;
        color: #00ae4e;
    }

    .unit-sentiment-score.neutral {
        background: #fff3e0;
        color: #ffb800;
    }

    .unit-sentiment-score.negative {
        background: #ffe6e6;
        color: #ff0000;
    }

.unit-stats {
    margin-bottom: 15px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--grey-1);
}

.stat-value {
    font-size: 0.85rem;
    color: var(--om-onyx);
    font-weight: 500;
}

.unit-comments h6 {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    color: var(--om-onyx);
    font-weight: 600;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comment-item {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

.comment-text {
    font-size: 0.8rem;
    color: var(--grey-1);
    font-style: italic;
    line-height: 1.4;
}

.comment-sample .comment-text {
    font-size: 0.9rem;
    color: var(--grey-1);
    line-height: 1.4;
}

/* Enhanced Insights Section */
.insights-section {
    margin-bottom: 35px;
}

    .insights-section h4 {
        margin-bottom: 20px;
    }

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.insight-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: transform 0.2s ease;
}

    .insight-card:hover {
        transform: translateY(-2px);
    }

    .insight-card.high {
        border-left: 4px solid #ff0000;
    }

    .insight-card.medium {
        border-left: 4px solid #ffb800;
    }

    .insight-card.low {
        border-left: 4px solid #00ae4e;
    }

.insight-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.insight-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.insight-header h5 {
    margin: 0;
    flex: 1;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--om-onyx);
}

.insight-priority {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

    .insight-priority.high {
        background: #ffe6e6;
        color: #ff0000;
    }

    .insight-priority.medium {
        background: #fff3e0;
        color: #ffb800;
    }

    .insight-priority.low {
        background: #e8f5e8;
        color: #00ae4e;
    }

.insight-card p {
    margin: 0 0 10px 0;
    font-size: 0.85rem;
    color: var(--grey-1);
    line-height: 1.5;
}

.insight-data {
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

    .insight-data small {
        color: var(--grey-1);
        font-size: 0.8rem;
    }

/* Enhanced Recommendations Section */
.recommendations-section {
    margin-bottom: 35px;
}

    .recommendations-section h4 {
        margin-bottom: 20px;
    }

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.recommendation-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: transform 0.2s ease;
}

    .recommendation-card:hover {
        transform: translateY(-2px);
    }

    .recommendation-card.high {
        border-left: 4px solid #ff0000;
    }

    .recommendation-card.medium {
        border-left: 4px solid #ffb800;
    }

    .recommendation-card.low {
        border-left: 4px solid #00ae4e;
    }

.recommendation-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.recommendation-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.recommendation-meta {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recommendation-category {
    font-size: 0.8rem;
    color: var(--grey-1);
    font-weight: 500;
}

.recommendation-priority {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

    .recommendation-priority.high {
        background: #ffe6e6;
        color: #ff0000;
    }

    .recommendation-priority.medium {
        background: #fff3e0;
        color: #ffb800;
    }

    .recommendation-priority.low {
        background: #e8f5e8;
        color: #00ae4e;
    }

.recommendation-content h5 {
    margin: 0 0 10px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--om-onyx);
    line-height: 1.4;
}

.recommendation-impact,
.recommendation-timeline {
    margin: 8px 0 0 0;
    font-size: 0.8rem;
    color: var(--grey-1);
    line-height: 1.4;
}

    .recommendation-impact strong,
    .recommendation-timeline strong {
        color: var(--om-onyx);
    }

/* Action Items */
.action-items {
    margin-bottom: 30px;
}

    .action-items h4 {
        margin-bottom: 20px;
    }

.action-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

    .action-item:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

.action-checkbox {
    flex-shrink: 0;
}

    .action-checkbox input[type="checkbox"] {
        width: 20px;
        height: 20px;
        accent-color: var(--primary-color);
    }

    .action-checkbox label {
        display: none;
    }

.action-content {
    flex: 1;
}

.action-text {
    font-size: 0.9rem;
    color: var(--om-onyx);
    font-weight: 500;
    margin-bottom: 4px;
}

.action-owner {
    font-size: 0.8rem;
    color: var(--grey-1);
}

.action-priority {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

    .action-priority.high {
        background: #ffe6e6;
        color: #ff0000;
    }

/* Reports Section Header Actions */
.reports .section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.reports .header-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

    .reports .header-actions .button-secondary {
        background: #f8f9fa;
        color: var(--primary-color);
        border: 1px solid var(--primary-color);
        padding: 8px 16px;
        border-radius: 6px;
        font-size: 0.9rem;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 6px;
        transition: all 0.2s ease;
    }

        .reports .header-actions .button-secondary:hover {
            background: var(--primary-color);
            color: white;
            transform: translateY(-1px);
        }

        .reports .header-actions .button-secondary .material-icons {
            font-size: 18px;
        }

/* Responsive design for reports header */
@media (max-width: 768px) {
    .reports .section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .reports .header-actions {
        justify-content: stretch;
    }

        .reports .header-actions button {
            flex: 1;
            justify-content: center;
        }
}

/* Responsive Design for Enhanced Reports */
@media (max-width: 768px) {
    .report-header {
        padding: 20px;
    }

    .report-meta {
        flex-direction: column;
        gap: 10px;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }

    .sentiment-chart-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .topics-grid {
        grid-template-columns: 1fr;
    }

    .unit-cards {
        grid-template-columns: 1fr;
    }

    .insights-grid {
        grid-template-columns: 1fr;
    }

    .recommendations-grid {
        grid-template-columns: 1fr;
    }

    .action-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .action-priority {
        align-self: flex-end;
    }
}

.report-type-card.featured-v2 {
    border: 2px solid #FF6B6B;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe6e6 100%);
    position: relative;
    transform: scale(1.02);
}

    .report-type-card.featured-v2:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(255, 107, 107, 0.15);
    }

    .report-type-card.featured-v2 .featured-badge {
        background: #FF6B6B;
        box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    }

    .report-type-card.featured-v2 .feature-tag {
        background: rgba(255, 107, 107, 0.1);
        color: #FF6B6B;
        border: 1px solid rgba(255, 107, 107, 0.2);
    }

/* Dropdown Styles */
.dropdown-container {
    position: relative;
    width: 100%;
}

.dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 12px 16px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: var(--om-onyx);
    transition: all 0.3s ease;
}

    .dropdown-toggle:hover {
        border-color: var(--primary-color);
    }

    .dropdown-toggle.active {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(0, 150, 119, 0.1);
    }

.dropdown-text {
    color: var(--om-onyx);
}

.dropdown-toggle .material-icons {
    transition: transform 0.3s ease;
    color: var(--grey-3);
}

.dropdown-toggle.active .material-icons {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    padding: 8px 0;
}

    .dropdown-content.active {
        display: block;
    }

    .dropdown-content label {
        display: flex;
        align-items: center;
        padding: 8px 16px;
        cursor: pointer;
        font-size: 14px;
        color: var(--om-onyx);
        transition: background-color 0.2s ease;
    }

        .dropdown-content label:hover {
            background-color: var(--grey-5);
        }

    .dropdown-content input[type="checkbox"] {
        margin-right: 12px;
        width: 16px;
        height: 16px;
        accent-color: var(--primary-color);
    }

.dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 8px 0;
}

.select-all-label {
    font-weight: 600;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 8px;
    padding-bottom: 8px;
}

    .select-all-label input[type="checkbox"] {
        accent-color: var(--primary-color);
    }

/* Scrollbar styling for dropdown */
.dropdown-content::-webkit-scrollbar {
    width: 6px;
}

.dropdown-content::-webkit-scrollbar-track {
    background: var(--grey-5);
    border-radius: 3px;
}

.dropdown-content::-webkit-scrollbar-thumb {
    background: var(--grey-3);
    border-radius: 3px;
}

    .dropdown-content::-webkit-scrollbar-thumb:hover {
        background: var(--grey-2);
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .dropdown-content {
        max-height: 250px;
    }

    .dropdown-toggle {
        padding: 10px 12px;
        font-size: 13px;
    }

    .dropdown-content label {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* Modern Report Form Styles */
.modern-report-form {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Filters Loading Indicator */
.filters-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.loading-spinner {
    text-align: center;
}

    .loading-spinner .spinner-border {
        width: 3.5rem;
        height: 3.5rem;
        margin-bottom: 20px;
        color: #009677 !important;
    }

.loading-text {
    color: #495057;
    font-size: 16px;
    margin: 0;
    font-family: 'Century Gothic', Arial, sans-serif;
    font-weight: 500;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

/* Hide loading indicator when filters are loaded */
.filters-loaded .filters-loading {
    display: none;
}

/* Ensure the filters container has proper spacing */
#filters {
    min-height: 200px;
    position: relative;
}

    /* Error message styling */
    #filters .alert {
        margin: 20px 0;
        padding: 20px;
        border-radius: 8px;
        border: 1px solid #dc3545;
        background-color: #f8d7da;
        color: #721c24;
    }

    #filters .alert-danger {
        background-color: #f8d7da;
        border-color: #f5c6cb;
        color: #721c24;
    }

    #filters .alert-warning {
        background-color: #fff3cd;
        border-color: #ffeaa7;
        color: #856404;
    }

.report-filters-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 28px 32px 24px 32px;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 18px;
    border: 1px solid #e5e5e5;
}

    .report-filters-card h3 {
        margin: 0;
        font-size: 1.15rem;
        font-weight: 700;
        color: var(--primary-color, #009677);
    }

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.filter-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-bottom: 1px solid #f5f5f5;
}

    .filter-row:last-child {
        border-bottom: none;
    }

.report-filters-card label {
    font-weight: 600;
    color: var(--om-onyx, #222);
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.filter-row select,
.filter-row input[type="text"] {
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    font-size: 1rem;
    background: #f8f9fa;
    color: #222;
    outline: none;
    transition: border 0.2s;
}

    .filter-row select:focus,
    .filter-row input[type="text"]:focus {
        border-color: var(--primary-color, #009677);
    }

.modern-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    /* justify-content: flex-end; */
    padding-top: 10px;
}

@media (max-width: 900px) {
    .modern-report-form {
        padding: 16px 0;
        gap: 20px;
    }

    .report-filters-card {
        padding: 18px 10px 14px 10px;
    }

    .filters-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .modern-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
}

/* Modern checkbox list for report filters */
.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 14px 16px;
    min-height: 120px;
    max-height: 220px;
    overflow-y: auto;
}

    .checkbox-list label {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 1rem;
        color: #222;
        cursor: pointer;
        font-weight: 400;
    }

    .checkbox-list input[type="checkbox"] {
        accent-color: var(--primary-color, #009677);
        width: 18px;
        height: 18px;
    }

/* Enhanced Filter Modal Styles */
.filter-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

    .filter-modal.active {
        display: flex;
        opacity: 1;
    }

.filter-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(2px);
}

.filter-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    padding: 1.5rem;
    min-width: 380px;
    max-width: 95vw;
    max-height: 85vh;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transform: scale(0.95);
    transition: transform 0.2s ease;
}

.filter-modal.active .filter-modal-content {
    transform: scale(1);
}

.filter-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

    .filter-modal-header h3 {
        margin: 0;
        font-size: 1.25rem;
        font-weight: 600;
        color: var(--om-onyx, #222);
    }

.filter-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

    .filter-modal-close:hover {
        color: var(--grey-1);
        background: #f5f5f5;
    }

.filter-modal-body {
    /* max-height: 350px; */
    overflow-y: auto;
    padding-right: 8px;
}

    .filter-modal-body::-webkit-scrollbar {
        width: 6px;
    }

    .filter-modal-body::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }

    .filter-modal-body::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 3px;
    }

.filter-modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

/* Enhanced Filter Button Styles */
.filter-modal-btn {
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: var(--primary-color, #009677);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: relative;
    min-width: 120px;
    justify-content: flex-start;
}

    .filter-modal-btn:hover {
        background: var(--primary-color, #009677);
        border-color: var(--primary-color, #009677);
        box-shadow: 0 4px 12px rgba(0,150,119,0.2);
    }

    .filter-modal-btn::before {
        content: '⚙️';
        font-size: 0.8rem;
    }

    /* Loading state styles */
    .filter-modal-btn.loading {
        cursor: not-allowed;
        opacity: 0.7;
        pointer-events: none;
    }

        /* .filter-modal-btn.loading::before {
            content: '';
            width: 12px;
            height: 12px;
            border: 2px solid transparent;
            border-top: 2px solid var(--primary-color, #009677);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        } */

        .filter-modal-btn.loading .btn-text {
            opacity: 0.7;
        }

/* Loading spinner animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Report Button Loading States */
.button-primary.loading {
    cursor: not-allowed;
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

    .button-primary.loading::before {
        content: '';
        position: absolute;
        left: 16px;
        /* top: 50%;
        transform: translateY(-50%); */
        width: 16px;
        height: 16px;
        border: 2px solid transparent;
        border-top: 2px solid currentColor;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin-top: -1px; /* Fine-tune vertical centering */
    }

    .button-primary.loading .btn-text {
        opacity: 0.8;
    }

/* Adjust text position when loading */
.button-primary.loading {
    padding-left: 44px;
}

/* Enhanced Selected Summary */
.selected-summary {
    font-size: 0.85rem;
    color: var(--grey-1);
    margin-top: 4px;
    display: block;
    line-height: 1.4;
}

    .selected-summary.multiple {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        margin-top: 6px;
    }

.summary-tag {
    background: #e8f5e8;
    color: var(--primary-color, #009677);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(0,150,119,0.2);
}

/* --- Enhanced Checkbox List Styles for Filter Modal --- */
.filter-modal-body label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: #222;
    cursor: pointer;
    font-weight: 400;
    margin-bottom: 4px;
    position: relative;
}

    /* Style for the 'All' option */
    .filter-modal-body label.all-option {
        font-weight: 700;
        font-size: 1.08rem;
        margin-bottom: 12px;
        margin-top: 2px;
    }

.filter-modal-body .all-divider {
    height: 1px;
    background: #e5e5e5;
    margin: 0 0 12px 0;
    border: none;
}

/* Simplified Checkbox Styles */
.filter-modal-body input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 3px;
    background: #fff;
    position: relative;
    cursor: pointer;
    outline: none;
    margin-right: 4px;
}

    .filter-modal-body input[type="checkbox"]:checked {
        background: var(--primary-color);
        border-color: var(--primary-color);
    }

        .filter-modal-body input[type="checkbox"]:checked::after {
            content: '✓';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: white;
            font-size: 11px;
            font-weight: bold;
        }

/* Enhanced Composition Options with Clickable Areas */
.composition-option-horizontal {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 8px;
    background: #fff;
    border: 1px solid #e0e0e0;
    position: relative;
    user-select: none;
}

    .composition-option-horizontal:hover {
        background: #F1F2F2;
    }

    /* Hide the actual input but keep it accessible */
    .composition-option-horizontal.custom-input input[type="checkbox"],
    .composition-option-horizontal.custom-input input[type="radio"] {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    /* Custom checkbox styling */
    .composition-option-horizontal input[type="checkbox"] + .option-label::before {
        content: '';
        display: inline-block;
        width: 20px;
        height: 20px;
        border: 2px solid var(--grey-2);
        border-radius: 3px;
        margin-right: 10px;
        vertical-align: middle;
        background: #fff;
        transition: all 0.2s ease;
    }

    .composition-option-horizontal input[type="checkbox"]:checked + .option-label::before {
        background: var(--primary-color);
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
        background-size: 20px;
        background-position: center;
        background-repeat: no-repeat;
        border: 2px solid var(--primary-color);
    }

    /* Custom radio button styling */
    .composition-option-horizontal input[type="radio"] + .radio-text::before {
        content: '';
        display: inline-block;
        width: 16px;
        height: 16px;
        border: 2px solid #009677;
        border-radius: 50%;
        margin-right: 8px;
        vertical-align: middle;
        background: #fff;
        transition: all 0.2s ease;
    }

    .composition-option-horizontal input[type="radio"]:checked + .radio-text::before {
        background: #009677;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3ccircle cx='10' cy='10' r='4' fill='%23fff'/%3e%3c/svg%3e");
        background-size: 8px;
        background-position: center;
        background-repeat: no-repeat;
    }

    /* Visual feedback for checked state */
    .composition-option-horizontal input[type="checkbox"]:checked + .option-label .option-title,
    .composition-option-horizontal input[type="radio"]:checked + .radio-text {
        color: #009677;
        font-weight: 600;
    }

.form-switch {
    position: relative;
    display: flex;
    align-items: center;
}

.form-switch {
    position: relative;
}

    .form-switch .form-check-input, .form-check.form-switch label {
        cursor: pointer;
    }

    .form-switch .form-check-input {
        margin: 0;
        position: absolute;
        left: 0;
    }

        .form-switch .form-check-input:checked {
            background-color: var(--primary-color);
            border-color: var(--primary-color);
        }

    .form-switch .form-check-input {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280, 0, 0, 0.50%29'/%3e%3c/svg%3e");
        border-color: var(--grey-1);
    }

        .form-switch .form-check-input:checked {
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%28255, 255, 255, 1%29'/%3e%3c/svg%3e");
            /*    border-color: #282828;*/
        }

.option-label {
    cursor: pointer;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
}

.option-title {
    font-weight: 600;
}

.option-description {
    font-size: 0.95em;
    color: #666;
    display: block;
}

/* Radio group styling */
.radio-group {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    /* border: 1px solid transparent; */
}

    .radio-option:hover {
        background-color: #f0f4fa;
        /* border-color: #009677; */
    }

    .radio-option input[type="radio"]:checked + .radio-text {
        color: #009677;
        font-weight: 600;
    }

.radio-text {
    font-size: 0.97em;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.option-description {
    margin-bottom: 8px;
    color: var(--grey-2);
}

/* Historical data option specific styling */
.historical-data-option {
    flex-direction: column;
    align-items: flex-start;
}

    .historical-data-option .option-title {
        margin-bottom: 4px;
        font-weight: 600;
    }

/* Responsive design for radio groups */
@media (max-width: 768px) {
    .radio-group {
        flex-direction: column;
        gap: 8px;
    }

    .radio-option {
        padding: 8px 12px;
    }

    .composition-option-horizontal {
        padding: 16px;
    }
}

/* Focus states for accessibility */
/*.composition-option-horizontal:focus-within {
    outline: 1px solid #282828;
}*/

/* Composition Options Container */
.composition-options-horizontal {
    display: grid;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

    .composition-options-horizontal.one-column {
        grid-template-columns: repeat(1, 1fr);
    }

    .composition-options-horizontal.two-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

/* @media (max-width: 1440px) {
    .composition-options-horizontal {
        grid-template-columns: repeat(2, 1fr);
    }
} */
.composition-section h4 {
    margin: 0 0 16px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--om-onyx);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Export Buttons Container */
.export-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-left: auto;
    flex-shrink: 0;
}

/* Horizontal Layout for Report Details */
.report-details-horizontal {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: start;
}

.report-name-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* .report-details-horizontal label {
        font-weight: 600;
        font-size: 0.9rem;
        color: var(--om-onyx);
        display: flex;
        align-items: center;
        gap: 4px;
    } */

.required {
    color: #ff4757;
    font-weight: bold;
}

.report-name-group input[type="text"] {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    background: white;
    transition: all 0.3s ease;
    padding-right: 165px;
    flex: 1;
}

    .report-name-group input[type="text"]:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(0, 150, 119, 0.1);
    }

.input-help {
    font-size: 0.8rem;
    color: var(--grey-2);
    font-style: italic;
}

.character-count {
    position: absolute;
    right: 0.5rem;
    font-size: 0.75rem;
}

.results-preview {
    display: flex;
    justify-content: flex-end;
}

.results-count-card {
    background: linear-gradient(135deg, #f8fffe 0%, #e8f5f3 100%);
    border: 2px solid rgba(0, 150, 119, 0.15);
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    min-width: 220px;
}

.count-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

    .count-header .material-icons {
        color: var(--primary-color);
        font-size: 20px;
    }

    .count-header span {
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--grey-1);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

.count-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.count-total {
    font-size: 0.875rem;
    color: var(--grey-1);
    font-weight: 500;
}

.count-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 0.95;
    }
}

.slide-in-up {
    animation: slideInUp 0.3s ease forwards;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

    .status-indicator.excellent {
        background: #00AE4E;
    }

    .status-indicator.good {
        background: #FFB800;
    }

    .status-indicator.needs-attention {
        background: #FF4757;
    }

.status-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--om-onyx);
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .composition-options-horizontal {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .report-details-horizontal {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .results-preview {
        justify-content: stretch;
    }

    .results-count-card {
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .composition-option-horizontal {
        padding: 14px;
    }

    .option-content-horizontal .material-icons {
        font-size: 24px;
    }

    .results-count-card {
        padding: 16px;
    }
}

@media (max-width: 600px) {
    .composition-options-horizontal {
        gap: 12px;
    }

    .composition-option-horizontal {
        padding: 12px;
    }
}

/* Progress Tracker Styles */
.progress-tracker-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
}

.progress-breadcrumb {
    position: sticky;
    top: 0;
    z-index: 99;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 8px 8px 0 0;
    font-size: 0.85rem;
    width: 100%;
    padding: 10px 24px;
    background: #FFF;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
    margin: 0;
}

.breadcrumb-header {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--grey-3);
    font-weight: 500;
    flex-shrink: 0;
}

    .breadcrumb-header .material-icons {
        font-size: 16px;
        color: var(--primary-color);
    }

.breadcrumb-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.breadcrumb-path {
    display: flex;
    align-items: center;
    flex: 1;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--grey-3);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.85rem;
}

    .breadcrumb-item .material-icons {
        font-size: 16px;
        color: var(--primary-color);
    }

    .breadcrumb-item:hover:not(.active) {
        color: var(--primary-color);
        background: rgba(0, 150, 119, 0.1);
    }

    .breadcrumb-item.active {
        color: var(--primary-color);
        /* background: var(--primary-color); */
        font-weight: 600;
        cursor: default;
        /* box-shadow: 0 2px 4px rgba(0, 150, 119, 0.3); */
    }

.breadcrumb-separator {
    color: var(--grey-3);
    margin: 0 6px;
    font-size: 1rem;
    user-select: none;
    display: flex;
    align-items: center;
}

    .breadcrumb-separator i {
        font-size: 0.8rem;
    }

.progress-summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
    position: relative;
}

    .progress-summary-cards::after {
        content: '';
        position: absolute;
        bottom: -30px;
        left: 20px;
        right: 20px;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
        border-radius: 1px;
    }

.summary-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .summary-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    }

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), #00b894);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.completion-card .card-icon {
    background: linear-gradient(135deg, #e91e63, #f06292);
}

.card-content {
    flex: 1;
}

.card-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--om-onyx);
    line-height: 1;
    margin-bottom: 4px;
}

    .card-value.completion-rate {
        color: var(--primary-color);
    }

.card-completion-rate {
    color: var(--primary-color);
    font-weight: bold;
}

.card-label {
    font-size: 0.85rem;
    color: var(--grey-3);
    font-weight: 500;
}

.progress-table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.table-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    border-bottom: 1px solid var(--border-color);
    background: #f8f9fa;
}

.table-header-left {
    display: flex;
    gap: 2rem;
    padding: 12px 24px;
    max-width: 50%;
}

.table-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--om-onyx);
}

.table-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 24px;
}

.back-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s ease;
}

    .back-button:hover {
        background: #00856a;
    }

.table-legend {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

    .legend-color.excellent {
        background: #00AE4E;
    }

    .legend-color.good {
        background: #FFB800;
    }

    .legend-color.fair {
        background: #FF9800;
    }

    .legend-color.attention {
        background: #FF6B6B;
    }

.progress-table-wrapper {
    overflow-x: auto;
}

.progress-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

    .progress-table th,
    .progress-table td {
        padding: 16px;
        text-align: left;
        border-bottom: 1px solid var(--border-color);
    }

    .progress-table th {
        background: #f8f9fa;
        font-weight: 600;
        color: var(--om-onyx);
        position: sticky;
        top: 0;
        z-index: 10;
    }

        .progress-table th.sortable {
            cursor: pointer;
            user-select: none;
            transition: background 0.2s ease;
        }

            .progress-table th.sortable:hover {
                background: #e9ecef;
            }

/* Ensure Material Icons load properly */
.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

.sort-icon {
    font-size: 16px;
    margin-left: 4px;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.progress-table th.sortable:hover .sort-icon {
    opacity: 1;
}

.progress-table tbody tr {
    transition: background 0.2s ease;
}

    .progress-table tbody tr:hover {
        background: #f8f9fa;
    }

.progress-table .completion-rate {
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 16px;
    color: white;
    text-align: center;
    display: inline-block;
    min-width: 50px;
}

.completion-rate.excellent {
    background: #00AE4E;
}

.completion-rate.good {
    background: #FFB800;
}

.completion-rate.fair {
    background: #FF9800;
}

.completion-rate.attention {
    background: #FF6B6B;
}

.drill-down-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: background 0.2s ease;
}

    .drill-down-btn:hover {
        background: #00856a;
    }

    .drill-down-btn:disabled {
        background: var(--grey-3);
        cursor: not-allowed;
    }

.unit-name {
    font-weight: 500;
    color: var(--om-onyx);
}

    .unit-name.clickable {
        color: var(--primary-color);
        font-weight: 500;
    }

.clickable-row {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .clickable-row:hover {
        background-color: rgba(0, 150, 119, 0.05);
    }

        .clickable-row:hover .unit-name.clickable {
            color: #00856a;
        }

/* Responsive adjustments for Progress Tracker */
@media (max-width: 768px) {
    .progress-summary-cards {
        grid-template-columns: 1fr;
    }

    .table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .table-header-left {
        align-items: stretch;
        width: 100%;
    }

    .breadcrumb-path {
        flex-wrap: wrap;
        gap: 4px;
    }

    .table-controls {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .table-legend {
        flex-wrap: wrap;
        gap: 12px;
    }

    .progress-table th,
    .progress-table td {
        padding: 12px 8px;
    }
}

/*Reponse Rate Leaderboard styles*/
.response-rate-leaderboard-container .pdf-header {
    padding: 0 20px;
}

.response-rate-leaderboard-container .pdf-footer {
    padding: 0 20px 16px 0;
}

.response-rate-leaderboard-container .pdf-header h2 {
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 25px;
    font-weight: 700;
}

.response-rate-leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin-top: 1rem;
}

    .response-rate-leaderboard-table td {
        vertical-align: middle;
    }

        .response-rate-leaderboard-table td:first-of-type {
            color: #000;
            /* color: var(--grey-2);*/
        }

    .response-rate-leaderboard-table .completion-rate {
        font-weight: bold;
        padding: 4px 12px;
        border-radius: 16px;
        color: white;
        text-align: center;
        display: inline-block;
        min-width: 50px;
    }

    .response-rate-leaderboard-table .total-row td {
        border-top: 2px solid #282828;
        font-weight: 600;
    }

.pdf-header, .pdf-footer {
    display: none;
}

.pdf-export .pdf-header, .pdf-export .pdf-footer {
    display: block !important;
}

/*Response Rate PDF*/
@media print {
    .pdf-export {
        position: relative;
        width: 794px;
        height: 1123px;
        overflow: hidden;
        background: #fffbe6;
        margin: 40px auto;
    }

        .pdf-export .pdf-header {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            width: 100%;
            background: white;
            z-index: 1000;
        }

        .pdf-export .pdf-footer {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            width: 100%;
            background: white;
            z-index: 1000;
        }

        .pdf-export .pdf-header, .pdf-export .pdf-footer {
            display: block;
        }

        .pdf-export .pdf-header {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            width: 100%;
            background: white;
            z-index: 1000;
        }

        .pdf-export .pdf-footer {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            width: 100%;
            background: white;
            z-index: 1000;
        }

        .pdf-export .response-rate-table-container {
            margin-top: 120px; /* adjust based on header height */
            margin-bottom: 80px; /* adjust based on footer height */
        }

        .pdf-export .export-button,
        .pdf-export .table-controls:not(.pdf-footer .table-controls) {
            display: none !important;
        }

    .pdf-export {
        page-break-after: always;
    }

        .pdf-export table {
            page-break-inside: auto;
        }

        .pdf-export tr {
            page-break-inside: avoid;
            page-break-after: auto;
        }

        .pdf-export .response-rate-leaderboard-container .pdf-header h2 {
            margin-top: 0 !important;
        }
}

/*PDF preview*/
@media screen {
    .pdf-export {
        position: relative;
        width: 794px;
        height: 1123px;
        overflow: hidden;
        background: #FFF;
        margin: 40px auto;
    }

        .pdf-export .pdf-header {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            width: 100%;
            background: white;
            z-index: 1000;
        }

        .pdf-export .pdf-footer {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            width: 100%;
            background: white;
            z-index: 1000;
        }

        .pdf-export .pdf-header, .pdf-export .pdf-footer {
            display: block;
        }

        .pdf-export .pdf-header {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            width: 100%;
            background: white;
            z-index: 1000;
        }

        .pdf-export .pdf-footer {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            width: 100%;
            background: white;
            z-index: 1000;
        }

        .pdf-export .response-rate-table-container {
            margin-top: 120px; /* adjust based on header height */
            margin-bottom: 80px; /* adjust based on footer height */
        }

        .pdf-export .export-button,
        .pdf-export .table-controls:not(.pdf-footer .table-controls) {
            display: none !important;
        }

    .pdf-export {
        page-break-after: always;
    }

        .pdf-export table {
            page-break-inside: auto;
        }

        .pdf-export tr {
            page-break-inside: avoid;
            page-break-after: auto;
        }

        .pdf-export .response-rate-leaderboard-container .pdf-header h2 {
            margin-top: 0 !important;
        }
}

/* ============================================
   CONSOLIDATED BUTTON SYSTEM
   ============================================

   This system provides a comprehensive set of button styles that consolidate
   all the previously scattered button definitions throughout the CSS.

   USAGE EXAMPLES:

   Basic buttons:
   <button class="btn btn-primary">Primary Action</button>
   <button class="btn btn-secondary">Secondary Action</button>
   <button class="btn btn-danger">Delete</button>
   <button class="btn btn-ghost">Subtle Action</button>

   Sizes:
   <button class="btn btn-primary btn-sm">Small</button>
   <button class="btn btn-primary btn-lg">Large</button>
   <button class="btn btn-primary btn-xl">Extra Large</button>

   Special buttons:
   <button class="btn btn-close"></button>
   <button class="btn btn-primary btn-icon-only"><i class="material-icons">add</i></button>
   <button class="btn btn-block">Full Width</button>
   <button class="btn btn-primary btn-loading">Loading...</button>

   Button groups:
   <div class="btn-group">
     <button class="btn btn-primary">First</button>
     <button class="btn btn-secondary">Second</button>
   </div>

   Legacy class aliases are maintained for backwards compatibility:
   .survey-button, .export-button, .filter-toggle, etc.

   ============================================ */
/* Base button styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

    .btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        pointer-events: none;
    }

/* Button variants */
.btn-primary {
    background: var(--primary-color);
    color: white;
}

    .btn-primary:hover:not(:disabled) {
        background: #007e64;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }

.btn-secondary {
    background: white;
    color: var(--om-onyx);
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

    .btn-secondary:hover:not(:disabled) {
        background: #f8f9fa;
        border-color: #c6c6c6;
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
    }

.btn-danger {
    background: var(--danger-color);
    color: white;
}

    .btn-danger:hover:not(:disabled) {
        background: #e63946;
        box-shadow: 0 4px 8px rgba(255, 75, 75, 0.25);
    }

.btn-ghost {
    background: transparent;
    color: var(--om-onyx);
    border: 1px solid transparent;
    box-shadow: none;
}

    .btn-ghost:hover:not(:disabled) {
        background: rgba(0, 150, 119, 0.1);
        color: var(--primary-color);
    }

/* Button sizes */
.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
}

.btn-lg {
    padding: 14px 24px;
    font-size: 16px;
    border-radius: 8px;
}

.btn-xl {
    padding: 18px 32px;
    font-size: 18px;
    border-radius: 10px;
}

/* Button with icons */
.btn .material-icons {
    font-size: 18px;
    width: 18px;
}

.btn-sm .material-icons {
    font-size: 16px;
    width: 16px;
}

.btn-lg .material-icons {
    font-size: 20px;
    width: 20px;
}

.btn-xl .material-icons {
    font-size: 24px;
    width: 24px;
}

/* Special button types */
.btn-icon-only {
    padding: 10px;
    border-radius: 50%;
    gap: 0;
}

    .btn-icon-only.btn-sm {
        padding: 6px;
    }

    .btn-icon-only.btn-lg {
        padding: 14px;
    }

.btn-close {
    color: var(--grey-1);
    border: none;
    padding: 8px;
    border-radius: 50%;
    box-shadow: none;
}

    .btn-close:hover:not(:disabled) {
        color: var(--grey-1);
    }

/* Dropdown button */
.btn-dropdown {
    position: relative;
}

    .btn-dropdown .material-icons {
        transition: transform 0.2s ease;
    }

    .btn-dropdown.active .material-icons {
        transform: rotate(180deg);
    }

/* Button groups */
.btn-group {
    display: flex;
    gap: 8px;
}

    .btn-group.btn-group-attached {
        gap: 0;
    }

        .btn-group.btn-group-attached .btn:not(:first-child) {
            border-top-left-radius: 0;
            border-bottom-left-radius: 0;
        }

        .btn-group.btn-group-attached .btn:not(:last-child) {
            border-top-right-radius: 0;
            border-bottom-right-radius: 0;
            border-right: none;
        }

/* Full width button */
.btn-block {
    width: 100%;
}

/* Loading state */
.btn-loading {
    position: relative;
    color: transparent !important;
}

    .btn-loading::after {
        content: '';
        position: absolute;
        width: 16px;
        height: 16px;
        border: 2px solid transparent;
        border-top: 2px solid currentColor;
        border-radius: 50%;
        animation: btn-spin 1s linear infinite;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: inherit;
    }

@keyframes btn-spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Legacy button class aliases for backwards compatibility */
.button-primary,
.survey-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    background: var(--primary-color);
    color: white;
}

    .button-primary:hover:not(:disabled),
    .survey-button:hover:not(:disabled) {
        background: #007e64;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }

.button-secondary,
.export-button,
.nav-btn,
.filter-modal-btn {
    display: inline-flex;
    align-items: center;
    /* justify-content: center; */
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    background: white;
    color: var(--om-onyx);
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

    .button-secondary:hover:not(:disabled),
    .export-button:hover:not(:disabled),
    .nav-btn:hover:not(:disabled),
    .filter-modal-btn:hover:not(:disabled) {
        background: #f8f9fa;
        border-color: #c6c6c6;
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
    }

/* Dedicated Filter Toggle Button Styles - Restored Original */
.filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: var(--om-onyx);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

    .filter-toggle:hover:not(:disabled) {
        background: #f8f9fa;
        border-color: var(--primary-color);
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
    }

    .filter-toggle svg {
        stroke: currentColor;
        transition: all 0.2s ease;
    }

    .filter-toggle:hover svg {
        stroke: var(--primary-color);
    }

.control-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none;
    white-space: nowrap;
    background: transparent;
    color: var(--om-onyx);
    border: 1px solid transparent;
}

    .control-btn:hover:not(:disabled) {
        background: rgba(0, 150, 119, 0.1);
        color: var(--primary-color);
    }

.close-filters,
.close-modal {
    background: transparent;
    color: var(--grey-1);
    border: none;
    padding: 8px;
    border-radius: 50%;
    box-shadow: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .close-filters:hover:not(:disabled),
    .close-modal:hover:not(:disabled) {
        background: #f8f9fa;
        color: #495057;
    }

.back-button,
.drill-down-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    gap: 8px;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
    white-space: nowrap;
    background: transparent;
    color: var(--om-onyx);
    border: 1px solid transparent;
}

    .back-button:hover:not(:disabled),
    .drill-down-btn:hover:not(:disabled) {
        background: rgba(0, 150, 119, 0.1);
        color: var(--primary-color);
    }

.filter-dropdown-btn {
    display: inline-flex;
    align-items: center;
    /* justify-content: center; */
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    background: white;
    color: var(--om-onyx);
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
}

    .filter-dropdown-btn:hover:not(:disabled) {
        background: #f8f9fa;
        border-color: #c6c6c6;
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
    }

    .filter-dropdown-btn .material-icons {
        transition: transform 0.2s ease;
    }

    .filter-dropdown-btn.active .material-icons {
        transform: rotate(180deg);
    }

/* Support for legacy Bootstrap-style classes */
.btn.btn-primary {
    background: var(--primary-color);
    color: white;
}

    .btn.btn-primary:hover:not(:disabled) {
        background: #007e64;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }

.btn.btn-secondary {
    background: white;
    color: var(--om-onyx);
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

    .btn.btn-secondary:hover:not(:disabled) {
        background: #f8f9fa;
        border-color: #c6c6c6;
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
    }

/* Mobile responsiveness */
@media (max-width: 768px) {
    .btn {
        padding: 12px 16px;
        font-size: 14px;
    }

    .btn-sm {
        padding: 8px 12px;
        font-size: 12px;
    }

    .btn-lg {
        padding: 16px 20px;
        font-size: 16px;
    }

    .btn-group {
        flex-direction: column;
        width: 100%;
    }

        .btn-group .btn {
            width: 100%;
        }
}

/* Data Timestamp Styling */
.data-timestamp {
    text-align: left;
    margin: var(--spacing-sm) 0;
    font-size: 0.75rem;
    color: var(--grey-2);
}

.timestamp-label {
    font-weight: 400;
    margin-right: var(--spacing-sm);
}

.timestamp-date {
    font-weight: 500;
    color: var(--grey-1);
}

@media (max-width: 768px) {
    .data-timestamp {
        font-size: 0.7rem;
        margin: 6px 0;
    }
}

/* Survey Access Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

    .modal-overlay.active {
        display: flex;
    }

.modal-content {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    /*max-width: 800px;
    width: 90%;*/
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    color: black;
}

    .modal-header h2 {
        font-size: 24px;
        font-weight: 600;
        margin: 0;
    }

.modal-close {
    background: none;
    border: none;
    color: black;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .modal-close:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .modal-close .material-icons {
        font-size: 24px;
    }

.modal-body {
    padding: 1.5rem;
    max-height: calc(90vh - 120px);
    overflow-y: auto;
}

.modal-description {
    font-size: 16px;
    color: var(--grey-1);
    margin-bottom: 32px;
    text-align: center;
}

.access-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.access-option {
    border: 2px solid #e1e5e9;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .access-option:hover {
        border-color: #667eea;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    }

    .access-option::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .access-option:hover::before {
        opacity: 1;
    }

.option-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin-bottom: 20px;
}

    .option-icon .material-icons {
        font-size: 28px;
        color: white;
    }

.option-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--om-onyx);
    margin-bottom: 12px;
}

.option-content p {
    font-size: 14px;
    color: var(--grey-1);
    line-height: 1.5;
    margin-bottom: 16px;
}

.option-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

    .option-features li {
        font-size: 13px;
        color: var(--grey-1);
        padding: 4px 0;
        position: relative;
        padding-left: 20px;
    }

        .option-features li::before {
            content: '✓';
            position: absolute;
            left: 0;
            color: #667eea;
            font-weight: bold;
        }

.option-button {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .option-button:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    }

    .option-button .material-icons {
        font-size: 18px;
    }

/* Responsive Design for Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }

    .modal-header {
        padding: 20px 24px;
    }

        .modal-header h2 {
            font-size: 20px;
        }

    .modal-body {
        padding: 24px;
    }

    .access-options {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .access-option {
        padding: 20px;
    }

    .option-icon {
        width: 50px;
        height: 50px;
    }

        .option-icon .material-icons {
            font-size: 24px;
        }

    .option-content h3 {
        font-size: 18px;
    }
}

/* Dimension-specific color indicators for overview page */
.dimension-item[data-dimension="changeReadiness"] .dimension-color-indicator {
    background-color: #E91E63; /* Pink for Change Readiness */
}

.dimension-item[data-dimension="engagement"] .dimension-color-indicator {
    background-color: #F37021; /* Orange for Employee Engagement */
}

.progress-scale-markers {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin: 2px 0 10px 0;
    font-size: 0.75em;
    color: #888;
    padding: 0;
}

    .progress-scale-markers span {
        flex: 0 0 auto;
        width: 1.5em;
        text-align: center;
        position: relative;
        left: -0.75em;
    }

        .progress-scale-markers span:last-child {
            left: 0.75em;
        }

/* ===== TABBED INTERFACE STYLES (Consolidated & Reusable) ===== */

/* Tab Containers */
.content-tabs-container,
.dimension-tabs-container,
.comment-tabs-container {
    margin-top: var(--spacing-sm);
}

/* Tab Navigation */
.content-tabs,
.dimension-tabs {
    display: flex;
    gap: var(--spacing-sm);
    border-bottom: 2px solid var(--border-color);
}

/* Tab Buttons - Shared Styles */
.content-tab,
.dimension-tab {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--grey-2);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

    .content-tab:hover,
    .dimension-tab:hover {
        color: var(--primary-color);
        background-color: rgba(0, 150, 119, 0.05);
    }

    .content-tab.active,
    .dimension-tab.active {
        color: var(--primary-color);
        font-weight: 700;
        border-bottom-color: var(--primary-color);
        background-color: #FFF;
    }

    .content-tab i,
    .dimension-tab i {
        font-size: 1.5rem;
    }

    .dimension-tab .dimension-color-indicator {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        flex-shrink: 0;
    }

/* Tab Content Areas */
.content-tab-content,
.dimension-tab-content,
.comment-tab-content {
    position: relative;
}

/* Tab Panes */
.content-tab-pane,
.dimension-tab-pane,
.comment-tab-pane {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

    .content-tab-pane.active,
    .dimension-tab-pane.active,
    .comment-tab-pane.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tab Mobile Responsive */
@media (max-width: 768px) {
    .content-tabs,
    .dimension-tabs {
        flex-direction: column;
        gap: 0;
        border-bottom: none;
    }

    .content-tab,
    .dimension-tab {
        border-bottom: 1px solid var(--border-color);
        border-left: 3px solid transparent;
        border-radius: 0;
        justify-content: flex-start;
        padding: var(--spacing-md);
    }

        .content-tab.active,
        .dimension-tab.active {
            border-left-color: var(--primary-color);
            border-bottom-color: var(--border-color);
            background-color: rgba(0, 150, 119, 0.1);
        }

        .content-tab:first-child,
        .dimension-tab:first-child {
            border-top-left-radius: var(--spacing-sm);
            border-top-right-radius: var(--spacing-sm);
        }

        .content-tab:last-child,
        .dimension-tab:last-child {
            border-bottom-left-radius: var(--spacing-sm);
            border-bottom-right-radius: var(--spacing-sm);
        }
}

/* Sentiment Themes 2-column layout */
.sentiment-themes-row {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.analysis-section {
    flex: 1 1 0;
    min-width: 280px;
}

@media (max-width: 900px) {
    .sentiment-themes-row {
        flex-direction: column;
        gap: 1.5rem;
    }

    .analysis-section {
        min-width: 0;
    }
}

/* Dimension Sections for Reports */
.dimension-section {
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    background: #FFF;
    padding: 1rem;
    border-radius: 8px;
}

.dimension-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--om-onyx);
}

    .dimension-label::before {
        content: '';
        width: 4px;
        height: 16px;
        background: var(--primary-color);
        border-radius: 2px;
    }

.dimension-section .report-actions {
    margin-top: 0;
}

/* Survey Modal Styles */
.survey-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

    .survey-modal.active {
        display: flex;
    }

    .survey-modal .modal-content {
        background: white;
        border-radius: 12px;
        max-width: 800px;
        width: 90%;
        max-height: 90vh;
        overflow-y: auto;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
        animation: modalSlideIn 0.3s ease-out;
    }

    .survey-modal .modal-header {
        padding: 24px 32px 16px;
        border-bottom: 1px solid var(--border-color);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

        .survey-modal .modal-header h2 {
            margin: 0;
            font-size: 24px;
            font-weight: 600;
            color: var(--om-onyx);
        }

    .survey-modal .close-modal {
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: var(--grey-2);
        padding: 8px;
        border-radius: 6px;
        transition: all 0.2s ease;
    }

        .survey-modal .close-modal:hover {
            background: var(--grey-5);
            color: var(--om-onyx);
        }

    .survey-modal .modal-body {
        padding: 24px 32px;
    }

        .survey-modal .modal-body p {
            margin-bottom: 24px;
            color: var(--grey-1);
            font-size: 16px;
            line-height: 1.6;
        }

    .survey-modal .access-options {
        display: grid;
        gap: 20px;
        grid-template-columns: 1fr 1fr;
    }

    .survey-modal .access-option {
        border: 2px solid var(--border-color);
        border-radius: 12px;
        padding: 24px;
        text-align: center;
        transition: all 0.3s ease;
        background: white;
        position: relative;
        overflow: hidden;
    }

        .survey-modal .access-option:hover {
            border-color: var(--primary-color);
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0, 150, 119, 0.15);
        }

    .survey-modal .option-icon {
        margin-bottom: 16px;
    }

        .survey-modal .option-icon .material-icons {
            font-size: 48px;
            color: var(--primary-color);
        }

    .survey-modal .option-content h3 {
        margin-bottom: 8px;
        font-size: 18px;
        font-weight: 600;
        color: var(--om-onyx);
    }

    .survey-modal .option-content p {
        margin-bottom: 16px;
        color: var(--grey-1);
        font-size: 14px;
        line-height: 1.5;
    }

    .survey-modal .option-features {
        list-style: none;
        padding: 0;
        margin-bottom: 20px;
        text-align: left;
    }

        .survey-modal .option-features li {
            margin-bottom: 8px;
            color: var(--grey-1);
            font-size: 13px;
            padding-left: 20px;
            position: relative;
        }

            .survey-modal .option-features li::before {
                content: "✓";
                position: absolute;
                left: 0;
                color: var(--primary-color);
                font-weight: bold;
            }

    .survey-modal .option-button {
        background: var(--primary-color);
        color: white;
        border: none;
        padding: 12px 24px;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

        .survey-modal .option-button:hover {
            background: #007a62;
            transform: translateY(-1px);
        }

        .survey-modal .option-button .material-icons {
            font-size: 18px;
        }

@media (max-width: 768px) {
    .survey-modal .access-options {
        grid-template-columns: 1fr;
    }

    .survey-modal .modal-content {
        width: 95%;
        margin: 20px;
    }

    .survey-modal .modal-header,
    .survey-modal .modal-body {
        padding: 20px;
    }
}

/* Enhanced Filter Modal Styles */
.filter-modal {
    animation: fadeIn 0.3s ease-out;
}

    .filter-modal.active {
        display: flex !important;
    }

.filter-modal-content {
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.filter-modal-header {
    border-bottom: 1px solid var(--border-color);
}

    .filter-modal-header h3 {
        margin: 0;
        font-size: 20px;
        font-weight: 600;
        color: var(--om-onyx);
    }

.filter-modal-body {
    padding: 0;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Filter Search */
.filter-search-container {
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.filter-search-input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: border-color 0.2s ease;
}

    .filter-search-input:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1);
    }

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--grey-3);
    font-size: 18px;
    pointer-events: none;
}

/* Filter Actions */
.filter-actions {
    padding: 1.25rem;
    border-top: 1px solid var(--grey-4);
    display: flex;
    gap: 12px;
    background: var(--grey-5);
}

.select-all-btn,
.select-none-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: white;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .select-all-btn:hover {
        background: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }

    .select-none-btn:hover {
        background: var(--grey-2);
        border-color: var(--grey-2);
        color: var(--grey-5);
    }

    .select-all-btn .material-icons,
    .select-none-btn .material-icons {
        font-size: 16px;
    }

/* Filter Options List */
.filter-options-list {
    flex: 1;
    overflow-y: auto;
    min-height: 300px;
    max-height: 550px;
    padding-right: 1rem;
}

.filter-option {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 6px;
    margin: 2px 0;
    border: 1px solid transparent;
    position: relative;
    background-color: #FFF;
}

    .filter-option:hover {
        background-color: var(--grey-5);
        border-color: var(--border-color);
    }

    .filter-option:has(input:checked) {
        background-color: rgba(76, 175, 80, 0.1);
        border-color: rgba(76, 175, 80, 0.3);
    }

        .filter-option:has(input:checked):hover {
            background-color: rgba(76, 175, 80, 0.15);
        }

    /* Alternative fallback for browsers that don't support :has() */
    /* .filter-option.selected {
        background-color: rgba(76, 175, 80, 0.1);
        border-color: rgba(76, 175, 80, 0.3);
    } */

    .filter-option.selected:hover {
        background-color: rgba(76, 175, 80, 0.15);
    }

    .filter-option input[type="checkbox"] {
        margin: 0;
        margin-right: 12px;
        width: 20px;
        height: 20px;
        position: relative;
        cursor: pointer;
        appearance: none;
        border: 2px solid var(--border-color);
        border-radius: 4px;
        background: white;
        transition: all 0.2s ease;
        flex-shrink: 0;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

        .filter-option input[type="checkbox"]:hover {
            border-color: var(--primary-color);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
        }

        .filter-option input[type="checkbox"]:checked {
            background: var(--primary-color);
            border-color: var(--primary-color);
            box-shadow: 0 2px 6px rgba(var(--primary-color-rgb), 0.3);
        }

            .filter-option input[type="checkbox"]:checked::after {
                content: '✓';
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                color: white;
                font-size: 14px;
                font-weight: bold;
                line-height: 1;
            }

        .filter-option input[type="checkbox"]:focus {
            outline: none;
            box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.2);
        }

.option-text {
    font-size: 14px;
    color: var(--om-onyx);
    line-height: 1.4;
    flex: 1;
}

.selection-indicator {
    margin-left: auto;
    opacity: 0;
    transition: opacity 0.2s ease;
    color: #4CAF50;
}

    .selection-indicator .material-icons {
        font-size: 18px;
    }

.filter-option:has(input:checked) .selection-indicator {
    opacity: 1;
}

/* Alternative fallback for browsers that don't support :has() */
.filter-option.selected .selection-indicator {
    opacity: 1;
}

/* Filter Modal Footer */
.filter-modal-footer {
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Selected Summary Styles */
.selected-summary {
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .selected-summary:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .selected-summary.all {
        background: rgba(76, 175, 80, 0.1);
        color: #4CAF50;
        border-color: rgba(76, 175, 80, 0.3);
    }

    .selected-summary.none {
        background: rgba(255, 152, 0, 0.1);
        color: #FF9800;
        border-color: rgba(255, 152, 0, 0.3);
    }

    .selected-summary.single {
        background: rgba(33, 150, 243, 0.1);
        color: #2196F3;
        border-color: rgba(33, 150, 243, 0.3);
    }

    .selected-summary.multiple {
        background: rgba(76, 175, 80, 0.1);
        color: #4CAF50;
        border-color: rgba(76, 175, 80, 0.3);
    }

    .selected-summary .material-icons {
        font-size: 16px;
    }

/* Preview Modal Styles */
.preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    backdrop-filter: blur(3px);
}

    .preview-modal.active {
        display: flex;
    }

.preview-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 70vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: modalSlideUp 0.3s ease-out;
}

.preview-modal-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .preview-modal-header h3 {
        margin: 0;
        font-size: 18px;
        font-weight: 600;
        color: var(--om-onyx);
    }

.preview-close-btn {
    background: none;
    border: none;
    color: var(--grey-3);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

    .preview-close-btn:hover {
        background: var(--grey-5);
        color: var(--om-onyx);
    }

.preview-modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    max-height: 50vh;
}

.preview-items-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.preview-item {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(76, 175, 80, 0.3);
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

    .preview-item .material-icons {
        font-size: 14px;
    }

.preview-empty {
    text-align: center;
    color: var(--grey-3);
    font-style: italic;
    padding: 40px 20px;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .filter-modal-content {
        width: 95%;
        max-height: 85vh;
    }

    .filter-search-container,
    .filter-actions,
    .filter-options-list,
    .filter-modal-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .filter-actions {
        flex-direction: column;
        gap: 8px;
    }

    .select-all-btn,
    .select-none-btn {
        justify-content: center;
    }
}

/* User info styling */
.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--grey-1);
    font-size: 0.8rem;
    font-weight: 500;
}

    .user-info .separator {
        color: #ccc;
        font-weight: normal;
    }

    .user-info .logout-link {
        color: var(--om-onyx);
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .user-info .logout-link:hover {
            color: var(--primary-color);
        }

        .user-info .logout-link:hover {
            color: var(--primary-color);
        }

footer {
    font-size: 0.875rem;
    background: var(--grey-5);
    color: var(--grey-1);
    text-align: center;
    padding: 0.5rem;
}

/* ===== PDF EXPORT STYLES ===== */
@media print {
    /* Hide navigation and interactive elements */
    header,
    footer,
    .export-button,
    .filter-toggle,
    .filter-menu,
    .user-info,
    .survey-button,
    .data-timestamp {
        display: none !important;
    }

    /* Remove container padding for full page use */
    .container {
        padding: 20px !important;
        max-width: none !important;
    }

    /* Make all dimension tab content visible and stacked */
    .dimension-tab-pane {
        display: block !important;
        opacity: 1 !important;
        position: static !important;
        margin-bottom: 40px;
    }

    /* Hide the dimension tabs themselves */
    .dimension-tabs-container .dimension-tabs {
        display: none !important;
    }

    /* Ensure proper spacing between sections */
    .metrics-grid {
        page-break-inside: avoid;
        margin-bottom: 30px;
    }

    .statements-section {
        page-break-inside: avoid;
        margin-bottom: 40px;
    }

    .dimension-statements-section {
        page-break-inside: avoid;
        margin-bottom: 30px;
    }

    /* Optimize metric cards for PDF */
    .metric-card {
        page-break-inside: avoid;
        margin-bottom: 20px;
    }

    /* Ensure statements grid doesn't break awkwardly */
    .statements-grid {
        page-break-inside: avoid;
    }

    /* Style adjustments for better PDF rendering */
    .section-header h3 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }

    .dimension-header h4 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    /* Ensure legends are clearly visible */
    .statements-legend {
        background: #f8f9fa;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        padding: 15px;
        margin-bottom: 20px;
        page-break-inside: avoid;
    }
}

/* PDF Export class styles (for when .pdf-export class is applied) */
.pdf-export header,
.pdf-export footer,
.pdf-export .export-button,
.pdf-export .filter-toggle,
.pdf-export .filter-menu,
.pdf-export .user-info,
.pdf-export .survey-button,
.pdf-export .data-timestamp {
    display: none !important;
}

.pdf-export .container {
    padding: 20px !important;
    max-width: none !important;
}

.pdf-export .dimension-tab-pane {
    display: block !important;
    opacity: 1 !important;
    position: static !important;
    margin-bottom: 40px;
}

.pdf-export .dimension-tabs-container .dimension-tabs {
    display: none !important;
}

/* ===== FILTERS LOADING INDICATOR ===== */
.filters-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.loading-spinner {
    text-align: center;
}

    .loading-spinner .spinner-border {
        width: 3.5rem;
        height: 3.5rem;
        margin-bottom: 20px;
        color: #009677 !important;
    }

.loading-text {
    color: #495057;
    font-size: 16px;
    margin: 0;
    font-family: 'Century Gothic', Arial, sans-serif;
    font-weight: 500;
    animation: pulse 2s infinite;
}

/* Initial loading message (shown immediately when page loads) */
.filters-initial-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-bottom: 20px;
}

    .filters-initial-loading .loading-message {
        display: flex;
        align-items: center;
        gap: 12px;
        color: var(--grey-2);
        font-size: 16px;
        font-weight: 500;
    }

    .filters-initial-loading .material-icons {
        font-size: 20px;
        color: var(--primary-color);
        animation: pulse 2s infinite;
    }

/* Hide loading indicator when filters are loaded */
.filters-loaded .filters-loading {
    display: none;
}

/* Hide loading indicator when filters are loaded */
.filters-loaded .filters-loading {
    display: none;
}

/* Page loading indicator in title */
.page-loading-indicator {
    color: var(--primary-color);
    font-weight: 300;
    animation: pulse 1.5s infinite;
    margin-left: 8px;
}

/* Dropdown Loading States */
.filter-dropdown-btn.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

    .filter-dropdown-btn.loading::after {
        content: '';
        position: absolute;
        /* top: 50%; */
        right: 2.5rem;
        /* transform: translateY(-50%); */
        width: 16px;
        height: 16px;
        border: 2px solid transparent;
        border-top: 2px solid var(--primary-color);
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
    }

    .filter-dropdown-btn.loading .dropdown-text {
        opacity: 0.6;
    }

.filter-dropdown-content.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px;
    padding: 20px;
}

    .filter-dropdown-content.loading::before {
        content: '';
        width: 24px;
        height: 24px;
        border: 2px solid var(--border-color);
        border-top: 2px solid var(--primary-color);
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

    .filter-dropdown-content.loading::after {
        content: 'Loading...';
        position: absolute;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 12px;
        color: var(--text-muted);
        font-weight: 500;
    }

/* Modal Button Loading States */
.filter-modal-btn.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

    .filter-modal-btn.loading::after {
        content: '';
        position: absolute;
        /* top: 50%; */
        right: 12px;
        /* transform: translateY(-50%); */
        width: 16px;
        height: 16px;
        border: 2px solid transparent;
        border-top: 2px solid var(--primary-color);
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
    }

    .filter-modal-btn.loading .btn-text {
        opacity: 0.6;
    }

/* Custom Report Upload Styles */
/* .custom-report-section {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-lg);
} */

/* .upload-area {
    margin: var(--spacing-lg) 0;
} */

.upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: var(--spacing-xl);
    text-align: center;
    background-color: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

    .upload-zone:hover, .upload-zone.drag-over {
        border-color: var(--primary-color);
        background-color: rgba(0, 150, 119, 0.05);
    }

.upload-icon {
    font-size: 48px;
    color: var(--primary-color);
}

.upload-zone h4 {
    margin: 0;
    color: var(--om-onyx);
    font-weight: 700;
    font-size: 1.25rem;
}

.upload-zone p {
    margin: 0;
    color: var(--grey-1);
    font-size: 0.9rem;
}

.supported-formats {
    font-size: 0.8rem !important;
    color: var(--grey-2) !important;
    margin-top: var(--spacing-xs) !important;
}

.browse-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .browse-btn:hover {
        background-color: #007a5f;
    }

.file-preview {
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: var(--spacing-md);
    background-color: #fff;
    margin-top: var(--spacing-sm);
}

.file-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

    .file-info i {
        font-size: 32px;
        color: var(--primary-color);
    }

.file-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.file-name {
    font-weight: 600;
    color: var(--om-onyx);
}

.file-size {
    color: var(--grey-2);
    font-size: 14px;
}

.remove-file {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: 50%;
    transition: all 0.3s ease;
}

    .remove-file:hover i {
        color: rgba(255, 75, 75, 1);
    }

.upload-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    justify-content: center;
}

    .upload-actions .button-primary,
    .upload-actions .button-secondary {
        display: inline-flex;
        align-items: center;
        gap: var(--spacing-sm);
        padding: var(--spacing-md) var(--spacing-lg);
        border-radius: 8px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
        border: none;
    }

    .upload-actions .button-primary {
        background-color: var(--primary-color);
        color: white;
    }

        .upload-actions .button-primary:hover {
            background-color: #007a5f;
            transform: translateY(-1px);
        }

    .upload-actions .button-secondary {
        background-color: var(--grey-4);
        color: var(--om-onyx);
    }

        .upload-actions .button-secondary:hover {
            background-color: var(--grey-3);
            transform: translateY(-1px);
        }

.tab-content {
    margin-bottom: 40px;
    padding: 25px;
    background: #FFF;
    border-radius: 0 0 12px 12px;
}

/* Statistics Cards */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

    .stat-card:hover {
        transform: translateY(-5px);
    }

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

    .stat-icon.positive {
        background: linear-gradient(135deg, #00ae4e, #00d15e);
    }

    .stat-icon.negative {
        background: linear-gradient(135deg, #ff0000, #cc0000);
    }

    .stat-icon.neutral {
        background: linear-gradient(135deg, #ffb800, #ff9500);
    }

    .stat-icon.total {
        background: linear-gradient(135deg, #2d5a27, #4a7c59);
    }

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-content p {
    color: #7f8c8d;
    font-weight: 500;
    margin-bottom: 0;
}

/* Charts Container */
.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.chart-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

    .chart-card h3 {
        margin-bottom: 20px;
        color: #2c3e50;
        font-size: 1.3rem;
        font-weight: 600;
    }

    .chart-card canvas {
        max-height: 300px;
    }

#themeSentimentChart {
    max-height: 400px;
}

/* Comments Analysis Styles */
/* Controls Panel */
.controls-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Comments Section */
.comments-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

    .comments-header h3 {
        color: #2c3e50;
        font-size: 1.5rem;
        font-weight: 600;
    }

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #e1e8ed;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

    .comment-card:hover {
        transform: translateX(5px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    .comment-card.positive {
        border-left-color: #00ae4e;
    }

    .comment-card.negative {
        border-left-color: #ff0000;
    }

    .comment-card.neutral {
        border-left-color: #ffb800;
    }

.comment-content {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #2c3e50;
}

.comment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.sentiment-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .sentiment-badge.positive {
        background: #e6f7ed;
        color: #00ae4e;
    }

    .sentiment-badge.negative {
        background: #ffe6e6;
        color: #ff0000;
    }

    .sentiment-badge.neutral {
        background: #fff8e6;
        color: #ffb800;
    }

.theme-tag {
    padding: 4px 10px;
    background: #f8f9fa;
    color: #495057;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

    .theme-tag.primary {
        background: #e3f2fd;
        color: #1976d2;
    }

/* Theme Grid */
.theme-breadcrumb {
    color: #7f8c8d;
    font-weight: 500;
    padding: 10px 0;
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

    .theme-grid .empty-state {
        grid-column: 1/-1;
    }

.theme-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

    .theme-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    }

.theme-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.theme-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.theme-card-count {
    background: var(--primary-color);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

.theme-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.theme-stat {
    text-align: center;
}

.theme-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--grey-1);
}

.theme-stat-label {
    font-size: 0.8rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.theme-card-sentiment {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.sentiment-indicator {
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

    .sentiment-indicator.positive {
        background: #e6f7ed;
        color: #00ae4e;
    }

    .sentiment-indicator.negative {
        background: #ffe6e6;
        color: #ff0000;
    }

    .sentiment-indicator.neutral {
        background: #fff8e6;
        color: #ffb800;
    }

/* Insights Container */
.insights-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.insights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

    .insights-grid.two-col {
        grid-template-columns: 1fr 1fr;
    }

.insights-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.insight-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 20px;
}

.insight-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

    .insight-icon.positive {
        background: linear-gradient(135deg, #00ae4e, #00d15e);
    }

    .insight-icon.negative {
        background: linear-gradient(135deg, #ff0000, #cc0000);
    }

    .insight-icon.neutral {
        background: linear-gradient(135deg, #ffb800, #ff9500);
    }

.insight-content {
    flex: 1;
}

    .insight-content h3 {
        font-size: 1.1rem;
        font-weight: 600;
        color: #2c3e50;
        margin-bottom: 15px;
    }

.insight-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.insight-item {
    padding: 8px 0;
}

.insight-item-name {
    color: #2c3e50;
}

.insight-item-value {
    font-weight: 600;
}

/* Comments Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 20px 0;
    padding: 0;
    list-style: none;
}

.page-item {
    display: inline-block;
}

    .page-item.disabled .page-link {
        opacity: 0.5;
        cursor: not-allowed;
        background: transparent;
        border-color: #dee2e6;
        color: #6c757d;
        pointer-events: none;
    }

    .page-item.active .page-link {
        background: #00677f;
        border-color: #00677f;
        color: white;
        font-weight: 600;
        box-shadow: 0 2px 6px rgba(0, 103, 127, 0.2);
        z-index: 1;
    }

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: white;
    color: #495057;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
}

    .page-link:hover:not(.disabled) {
        background: #f8f9fa;
        border-color: #00677f;
        color: #00677f;
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .page-link:focus {
        outline: 2px solid #00677f;
        outline-offset: 2px;
        z-index: 2;
    }

    .page-link:active:not(.disabled) {
        transform: translateY(0);
    }

.page-item:first-child .page-link,
.page-item:last-child .page-link,
.page-item:nth-child(2) .page-link,
.page-item:nth-last-child(2) .page-link {
    font-weight: 600;
    font-size: 1rem;
}

.pagination-sm .page-link {
    min-width: 32px;
    height: 32px;
    padding: 0 6px;
    font-size: 0.8125rem;
}

#pageSize {
    min-width: 80px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 6px 12px;
    transition: all 0.2s ease;
}

    #pageSize:focus {
        border-color: #00677f;
        outline: none;
        box-shadow: 0 0 0 3px rgba(0, 103, 127, 0.1);
    }

    #pageSize:hover {
        border-color: #00677f;
    }

#pageInfo {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

    .comments-header h3 {
        margin: 0;
        color: #2c3e50;
        font-weight: 600;
    }

@media (max-width: 768px) {
    .pagination {
        gap: 4px;
        flex-wrap: wrap;
    }

    .page-link {
        min-width: 32px;
        height: 32px;
        padding: 0 6px;
        font-size: 0.8125rem;
    }

    .page-item:first-child .page-link,
    .page-item:last-child .page-link,
    .page-item:nth-child(2) .page-link,
    .page-item:nth-last-child(2) .page-link {
        font-size: 0.875rem;
    }

    #pageInfo {
        font-size: 0.8125rem;
    }

    .comments-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #7f8c8d;
}

    .empty-state i {
        font-size: 4rem;
        margin-bottom: 20px;
        opacity: 0.5;
    }

    .empty-state h3 {
        color: #2c3e50;
        font-weight: 600;
        margin-bottom: 10px;
    }

    .empty-state p {
        font-size: 1rem;
    }

/* Responsive Design */
/* Upload Responsive Styles */
@media (max-width: 768px) {
    .upload-zone {
        padding: var(--spacing-lg);
    }

    .upload-actions {
        flex-direction: column;
    }

    .insights-grid {
        grid-template-columns: 1fr;
    }

    .theme-grid {
        grid-template-columns: 1fr;
    }
}