﻿/* ===================================================== */
/* CSS VARIABLES & GLOBAL STYLES                        */
/* ===================================================== */

:root {
    /* Colors */
    --primary-blue: #4a90e2;
    --login-blue: #C6E0F6;
    --figma-blue: #0074c0; /* blue from Figma */
    --figma-blue-dark: #005a94; /* Darker blue for hover */
    --dark-blue: #08386c;
    --darker-blue: #06305a;
    --light-blue: #357abd;
    --teal: #00bcc4;
    --teal-dark: #07517c;
    --gray-light: #f4f5f7;
    --gray-medium: #6c757d;
    --gray-dark: #2c3e50;
    --gray-border: #d1d5db;
    --gray-text: #374151;
    --gray-muted: #6b7280;
    --gray-placeholder: #9ca3af;
    --gray-rating-bg: #ededed; /* Rating circle background */
    --gray-rating-hover: #d6d6d6; /* Rating circle hover */
    --gray-slider: #e1e1e1; /* Slider background */
    --white: #ffffff;
    --error-red: #dc3545;
    --success-green: #28a745;
    /* Background colors */
    --bg-light: #f8f9fa;
    --bg-table-header: #ffffff; /* White header background */
    --bg-table-odd: #f0f7ff; /* Light blue for alternating rows */
    --bg-table-hover: #e6f3ff; /* Slightly darker blue for hover */
    --bg-slider: #f9fafb;
    /* Border colors */
    --border-light: #e5e7eb;
    --border-medium: #dee2e6;
    --border-table: #f3f4f6;
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 2.5rem;
    --spacing-3xl: 3rem;
    /* Component-specific sizes */
    --rating-circle-size: 3.95rem; /* Figma rating circle size */
    --rating-circle-size-md: 3rem; /* Medium screen size */
    --rating-circle-size-sm: 2.5rem; /* Small screen size */
    --rating-circle-size-xs: 2.25rem; /* Extra small screen size */
    --slider-thumb-size: 20px; /* Slider thumb size */
    /* Font sizes */
    --font-xs: 0.7rem;
    --font-sm: 0.75rem;
    --font-md: 0.875rem;
    --font-base: 1rem;
    --font-lg: 1.25rem;
    --font-xl: 1.5rem;
    --font-2xl: 2.5rem;
    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-full: 50%;
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-slider: 0 2px 4px rgba(0, 0, 0, 0.2);
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.4s ease;
    /* Disabled button styles */
    --disabled-opacity: 0.5;
    --disabled-cursor: not-allowed;
    background: var(--gray-light);
    color: var(--gray-muted) !important;
    border-color: var(--gray-border);
}

.icon-button[disabled] .action-icon,
.icon-button[disabled] img,
.icon-button:disabled img {
    filter: grayscale(100%) brightness(0.7) !important;
    opacity: 0.6 !important;
.icon-button:disabled .action-icon {
    filter: grayscale(100%) brightness(0.7) !important;
    opacity: 0.6 !important;
}
}


* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    overflow-x: hidden;
    width: 100%;
    font-family: 'Nunito Sans', sans-serif;
    font-size: var(--font-base);
    line-height: 1.6;
    color: var(--gray-dark);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.font-heading {
    font-family: 'Poppins', sans-serif;
}

.font-body {
    font-family: 'Nunito Sans', sans-serif;
}

/* Font family overrides */
.survey-title,
.survey-subtitle,
.survey-header,
.login-header {
    font-family: 'Poppins', sans-serif;
}

.survey-section,
.survey-section *,
.header-nav-item,
.home-welcome-subtitle,
.home-description,
.review-mode-banner,
.rating-circle {
    font-family: 'Nunito Sans', sans-serif;
}

/* Global focus-visible styles */
*:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Remove default browser margins and padding */
html {
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Container and layout */
.container {
    flex: 1;
}

    .container main {
        margin-bottom: 0;
    }

/* ===================================================== */
/* HEADER STYLES                                         */
/* ===================================================== */

/* QR Mode Header */
.header-qr-mode {
    width: 100%;
    background-color: var(--gray-light);
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
}

    .header-qr-mode img {
        height: auto;
        max-height: 100%;
        object-fit: cover;
        cursor: pointer;
        transition: opacity var(--transition-fast);
    }

        .header-qr-mode img:hover {
            opacity: 0.8;
        }

/* Authenticated User Header */
.header-authenticated {
    width: 100%;
    background-color: var(--dark-blue);
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-lg);
    box-sizing: border-box;
}

.header-logo {
    flex-shrink: 0;
}

    .header-logo img {
        height: var(--spacing-3xl);
        width: auto;
        cursor: pointer;
        transition: opacity var(--transition-fast);
    }

        .header-logo img:hover {
            opacity: 0.8;
        }

.header-nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    flex-grow: 1;
    justify-content: center;
    margin: 0 var(--spacing-xl);
}

.header-nav-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--white);
    text-decoration: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-fast);
    cursor: pointer;
    white-space: nowrap; /* Prevent text wrapping */
    font-weight: 600;
}

    .header-nav-item:hover,
    .header-nav-item.active {
        background-color: var(--teal);
        color: var(--teal-dark);
        text-decoration: none;
    }

    .header-nav-item.disabled {
        cursor: not-allowed;
        opacity: 0.5;
    }

        .header-nav-item.disabled:hover {
            background-color: transparent;
            color: var(--white);
        }

    .header-nav-item:focus-visible {
        outline: 2px solid var(--white);
        outline-offset: 2px;
    }

    .header-nav-item img {
        width: 1.25rem;
        height: 1.25rem;
        filter: brightness(0) invert(1);
    }

    .header-nav-item:hover img,
    .header-nav-item.active img {
        filter: brightness(0);
    }

/* User section */
.header-user {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex-shrink: 0;
}

.header-user-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--white);
    font-weight: 500;
    font-size: var(--font-md);
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-fast);
}

    .header-user-info:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .header-user-info:focus-visible {
        outline: 2px solid var(--white);
    }

    .header-user-info img {
        width: var(--spacing-md);
        height: var(--spacing-md);
        filter: brightness(0) invert(1);
    }

.header-search-icon {
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-fast);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .header-search-icon:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .header-search-icon:focus-visible {
        outline: 2px solid var(--white);
    }

    .header-search-icon img {
        width: 1.25rem;
        height: 1.25rem;
        filter: brightness(0) invert(1);
    }

.header-login-signup {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-md);
    transition: background-color var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

    .header-login-signup:hover {
        background-color: rgba(255, 255, 255, 0.3);
        color: var(--white);
        text-decoration: none;
    }

    .header-login-signup:focus-visible {
        outline: 2px solid var(--white);
    }

/* ===================================================== */
/* FOOTER STYLES                                         */
/* ===================================================== */

.footer-simple,
.footer-disclaimer {
    margin-bottom: 0;
    margin-top: auto;
}

.footer-simple {
    width: 100%;
    background-color: var(--dark-blue);
    padding: var(--spacing-md) var(--spacing-xl);
    box-sizing: border-box;
}

.footer-simple-nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    justify-content: flex-start;
}

.footer-simple-nav-item {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-base);
    padding: var(--spacing-sm) 0;
    transition: opacity var(--transition-fast);
    cursor: pointer;
}

    .footer-simple-nav-item:hover {
        opacity: 0.8;
        color: var(--white);
        text-decoration: none;
    }

    .footer-simple-nav-item:focus-visible {
        outline: 2px solid var(--white);
    }

.footer-disclaimer {
    width: 100%;
    background-color: var(--dark-blue);
    padding: var(--spacing-lg) var(--spacing-xl);
    box-sizing: border-box;
    position: relative;
}

.footer-disclaimer-content {
    color: var(--white);
    font-size: var(--font-md);
    line-height: 1.5;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===================================================== */
/* LOGIN PAGE STYLES                                     */
/* ===================================================== */

.login-container {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--login-blue);
    padding: var(--spacing-xl) var(--spacing-md);
    margin: var(--spacing-3xl);
}

.login-form-wrapper {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 0;
    width: 100%;
    max-width: 400px;
}

.login-form-content {
    padding-top: 0px;
    padding-right: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    padding-left: var(--spacing-xl);
    text-align: center;
}

.login-header {
    color: var(--dark-blue);
    font-size: 2rem;
    font-weight: 500;
}

.login-title {
    font-size: var(--font-base);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
    text-align: left;
}

.login-subtitle {
    font-size: var(--font-base);
    color: var(--gray-medium);
    line-height: 1.5;
    text-align: center;
    font-weight: 700;
}

.login-form {
    width: 100%;
}

.login-field-group {
    margin-bottom: 1rem;
    text-align: left;
}

.login-input {
    width: 100%;
    padding: 0.875rem var(--spacing-md);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    font-size: var(--font-base);
    background-color: var(--white);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    box-sizing: border-box;
}

    .login-input:focus {
        border-color: var(--primary-blue);
        outline: 0;
        box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
    }

    .login-input:focus-visible {
        outline: 2px solid var(--primary-blue);
    }

    .login-input::placeholder {
        color: #adb5bd;
        font-size: var(--font-base);
    }

.login-error {
    color: var(--error-red);
    font-size: var(--font-md);
    margin-top: var(--spacing-xs);
    display: block;
}

.login-button {
    width: 100%;
    padding: 0.875rem;
    background-color: var(--dark-blue);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: var(--font-base);
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition-fast);
    margin-bottom: var(--spacing-sm);
}

    .login-button:hover {
        background-color: var(--darker-blue);
    }

    .login-button:focus-visible {
        outline: 2px solid var(--dark-blue);
    }

.login-image {
    flex: 0 0 320px;
    text-align: center;
    z-index: 2;
    margin-bottom: var(--spacing-md);
}

    .login-image img {
        max-width: 100%;
        height: auto;
        border-radius: var(--radius-md);
    }

/* Login/Register Button Styles */
.login-register-btn {
    width: 100%;
    font-family: 'Nunito Sans', sans-serif;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 0.375rem;
    display: inline-block;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    box-sizing: border-box;
}

    .login-register-btn:hover {
        color: #fff;
        text-decoration: none;
    }

    .login-register-btn:focus {
        outline: none;
        border-color: #fff;
        box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
    }
/* ===================================================== */
/* REGISTER PAGE STYLES                                  */
/* ===================================================== */

.register-header {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-blue);
    font-size: 2rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.register-label {
    font-family: 'Nunito Sans', sans-serif;
    font-size: var(--font-base);
    font-weight: 600;
    color: var(--gray-dark);
    margin-bottom: var(--spacing-xs);
}

.register-text {
    font-family: 'Nunito Sans', sans-serif;
    font-size: var(--font-base);
    color: var(--gray-medium);
    line-height: 1.5;
}

.register-text-muted {
    font-family: 'Nunito Sans', sans-serif;
    font-size: var(--font-md);
    color: var(--gray-muted);
    line-height: 1.5;
}

.register-input {
    font-family: 'Nunito Sans', sans-serif;
    font-size: var(--font-base);
}

.register-btn-primary {
    width: 100%;
    padding: 0.875rem;
    background-color: var(--dark-blue);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Nunito Sans', sans-serif;
    font-size: var(--font-base);
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition-fast);
    margin-bottom: var(--spacing-sm);
}

    .register-btn-primary:hover {
        background-color: var(--darker-blue);
    }

    .register-btn-primary:focus-visible {
        outline: 2px solid var(--dark-blue);
    }

    .register-btn-primary:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }
/* ===================================================== */
/* SURVEY FORM STYLES                                    */
/* ===================================================== */

.survey-container {
    margin-left: var(--spacing-3xl);
    margin-right: var(--spacing-3xl);
    padding: var(--spacing-3xl);
    background-color: var(--white);
    min-height: 70vh;
}

.survey-questions-container {
    max-width: 900px;
    padding: var(--spacing-xl);
}

.survey-header {
    margin-bottom: var(--spacing-xl);
}

.survey-title {
    font-size: var(--font-2xl);
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

.survey-subtitle {
    font-size: var(--font-xl);
    font-weight: 400;
    color: var(--gray-medium);
    margin-bottom: 0;
    line-height: 1.3;
}

.survey-section {
    font-size: var(--font-base);
    line-height: 1.6;
    color: var(--gray-dark);
    margin-bottom: var(--spacing-xl);
}

    .survey-section .section-instructions {
        background-color: var(--gray-light);
        border-left: 4px solid var(--primary-blue);
        padding: var(--spacing-md) var(--spacing-lg);
        margin-bottom: var(--spacing-xl);
        border-radius: 4px;
    }

        .survey-section .section-instructions h4 {
            font-size: 1rem;
            font-weight: 500;
            color: var(--gray-dark);
            margin: 0;
            line-height: 1.5;
        }

    .survey-section p {
        margin-bottom: 1.25rem;
    }

        .survey-section p strong {
            font-weight: 600;
            color: var(--gray-dark);
        }

    .survey-section ul {
        margin: var(--spacing-md) 0;
        padding-left: var(--spacing-lg);
    }

        .survey-section ul li {
            margin-bottom: var(--spacing-sm);
        }

    .survey-section a {
        color: var(--primary-blue);
        text-decoration: underline;
    }

        .survey-section a:hover {
            color: var(--light-blue);
        }

    /* Form Elements */
    .survey-section select,
    .form-select {
        width: fit-content;
        padding: var(--spacing-md) var(--spacing-3xl) var(--spacing-md) var(--spacing-md);
        border: 1px solid var(--gray-border);
        border-radius: var(--radius-md);
        font-size: var(--font-base);
        background-color: var(--white);
        background-position: right 0.75rem center;
        background-repeat: no-repeat;
        background-size: 1.5em 1.5em;
        appearance: none;
        margin-bottom: var(--spacing-lg);
        color: var(--gray-text);
    }

        .survey-section select:focus,
        .form-select:focus {
            border-color: var(--primary-blue);
            outline: 0;
            box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
        }

        .survey-section select:focus-visible,
        .form-select:focus-visible {
            outline: 2px solid var(--primary-blue);
        }

    .survey-section textarea {
        width: 100%;
        padding: var(--spacing-md);
        border: 1px solid var(--gray-border);
        border-radius: var(--radius-md);
        font-size: var(--font-base);
        resize: vertical;
        min-height: 120px;
        margin-bottom: var(--spacing-md);
    }

        .survey-section textarea:focus {
            border-color: var(--primary-blue);
            outline: 0;
            box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
        }

        .survey-section textarea:focus-visible {
            outline: 2px solid var(--primary-blue);
        }

/* Scale Styles */
.rating-scale {
    display: flex;
    flex-wrap: wrap; /* allow labels to move below */
    justify-content: center;
    align-items: center;
    gap: 0.75rem; /* consistent gap between circles */
    width: 100%;
    position: relative;
}

.rating-scale-item {
    flex: 0 0 auto; /* prevent circles from stretching */
}


.rating-circle {
    width: var(--rating-circle-size);
    height: var(--rating-circle-size);
    border-radius: var(--radius-full);
    background-color: var(--gray-rating-bg);
    border: 1px solid var(--figma-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: var(--font-lg);
    color: var(--figma-blue);
    transition: all var(--transition-fast);
    cursor: pointer;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

    .rating-circle:hover {
        background-color: var(--gray-rating-hover);
        border-color: var(--figma-blue-dark);
    }

    .rating-circle:focus-visible {
        outline: 2px solid var(--figma-blue);
        outline-offset: 2px;
    }

    .rating-circle.selected {
        background-color: var(--figma-blue);
        color: var(--white);
        border-color: var(--figma-blue);
    }

/* Align the labels below the scale */
.rating-labels {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin: var(--spacing-xl) 0;
    font-size: var(--font-md);
    color: var(--dark-blue);
    font-weight: 400;
}


/* Responsive Rating Scale */
@media (min-width: 769px) {
    .rating-scale {
        justify-content: space-between;
        max-width: 50rem;
    }
}

@media (max-width: 768px) {
    .rating-scale {
        gap: var(--spacing-sm);
        height: 6rem;
        justify-content: space-between;
    }

    .rating-circle {
        width: var(--rating-circle-size-md);
        height: var(--rating-circle-size-md);
        font-size: var(--font-base);
    }

    .rating-labels {
        top: 4.5rem;
        font-size: var(--font-sm);
        padding: 0 var(--spacing-xs);
    }
}

@media (max-width: 640px) {
    .rating-scale {
        gap: 0.3rem;
        height: 5.5rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0 var(--spacing-sm);
    }

    .rating-circle {
        width: var(--rating-circle-size-sm);
        height: var(--rating-circle-size-sm);
        font-size: var(--font-md);
        flex-shrink: 0;
    }

    .rating-labels {
        top: 4rem;
        font-size: var(--font-sm);
        padding: 0;
    }
}

@media (max-width: 480px) {
    .rating-scale {
        gap: 0.2rem;
        height: 5rem;
        padding: 0 var(--spacing-xs);
    }

    .rating-circle {
        width: var(--rating-circle-size-xs);
        height: var(--rating-circle-size-xs);
        font-size: var(--font-sm);
    }

    .rating-labels {
        top: 3.5rem;
        font-size: var(--font-xs);
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
        position: static;
        margin-top: var(--spacing-md);
    }
}

/* Slider Styles */
.slider-container {
    margin: var(--spacing-xl) 0;
}

.slider-wrapper {
    position: relative;
    margin: var(--spacing-md) 0;
}

.form-range {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--gray-slider);
    outline: none;
    margin: 0;
    -webkit-appearance: none;
    appearance: none;
}

    .form-range:focus-visible {
        outline: 2px solid var(--primary-blue);
    }

    .form-range::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: var(--slider-thumb-size);
        height: var(--slider-thumb-size);
        border-radius: var(--radius-full);
        background: var(--dark-blue);
        cursor: pointer;
        border: 2px solid var(--white);
        box-shadow: var(--shadow-slider);
    }

    .form-range::-moz-range-thumb {
        width: var(--slider-thumb-size);
        height: var(--slider-thumb-size);
        border-radius: var(--radius-full);
        background: var(--dark-blue);
        cursor: pointer;
        border: 2px solid var(--white);
        box-shadow: var(--shadow-slider);
    }

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: var(--spacing-lg);
    font-size: var(--font-md);
    color: var(--dark-blue);
    font-weight: 500;
    line-height: 1.5;
}

    .slider-labels span {
        flex: 1;
        text-align: center;
        max-width: 180px;
    }

        .slider-labels span:first-child {
            text-align: left;
        }

        .slider-labels span:last-child {
            text-align: right;
        }

.slider-value {
    text-align: center;
    margin-top: var(--spacing-sm);
    font-weight: 600;
    color: var(--dark-blue);
    font-size: var(--font-md);
}

/* Tables */
.survey-table-wrapper {
    width: 100%;
    margin: var(--spacing-lg) 0;
}

.survey-table,
.table {
    width: 100%;
    border-collapse: collapse; /* collapse for clean borders */
    margin: var(--spacing-lg) 0;
    border: 1px solid var(--table-border);
}

.survey-table-wrapper .survey-table {
    margin: 0; /* wrapper handles margin */
}

    .survey-table thead th,
    .table thead th {
        background-color: var(--bg-table-header); /* White background */
        padding: var(--spacing-lg) var(--spacing-md);
        font-weight: 600;
        text-align: center;
        font-size: var(--font-md);
        color: var(--gray-text);
        border-bottom: 1px solid var(--table-border);
        border-right: 1px solid var(--table-border);
        font-family: 'Mulish', sans-serif;
    }

        .survey-table thead th:first-child,
        .table thead th:first-child {
            text-align: left;
            padding-left: var(--spacing-xl);
            max-width: 300px;
        }

        .survey-table thead th:last-child,
        .table thead th:last-child {
            border-right: none;
        }

    .survey-table tbody td,
    .table tbody td {
        padding: var(--spacing-lg) var(--spacing-md);
        text-align: center;
        border-bottom: 1px solid var(--table-border);
        border-right: 1px solid var(--table-border);
        background-color: var(--white);
        vertical-align: middle;
        font-size: var(--font-base);
    }

        .survey-table tbody td:first-child,
        .table tbody td:first-child {
            text-align: left;
            font-weight: 500;
            color: var(--gray-text);
            padding-left: var(--spacing-xl);
            max-width: 300px;
            line-height: 1.5;
        }

        .survey-table tbody td:last-child,
        .table tbody td:last-child {
            border-right: none;
        }

    /* Alternating row colors - Light blue for odd rows */
    .survey-table tbody tr:nth-child(odd) td,
    .table tbody tr:nth-child(odd) td {
        background-color: var(--bg-table-odd); /* Light blue background */
    }

    /* Hover effect - Slightly darker blue */
    .survey-table tbody tr:hover td,
    .table tbody tr:hover td {
        background-color: var(--bg-table-hover);
    }

    /* Radio buttons styling */
    .survey-table input[type="radio"],
    .table input[type="radio"] {
        width: 1.25rem;
        height: 1.25rem;
        margin: 0;
        cursor: pointer;
        accent-color: var(--figma-blue);
    }

        .survey-table input[type="radio"]:focus-visible,
        .table input[type="radio"]:focus-visible {
            outline: 2px solid var(--figma-blue);
            outline-offset: 2px;
        }

/* Form Elements */
.form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
    gap: var(--spacing-md);
}

.form-check-input {
    width: 1.125rem;
    height: 1.125rem;
    margin: var(--spacing-xs) 0 0 0;
    cursor: pointer;
    accent-color: var(--primary-blue);
    flex-shrink: 0;
}

    .form-check-input:focus-visible {
        outline: 2px solid var(--primary-blue);
    }

.form-check-label {
    font-size: var(--font-base);
    line-height: 1.5;
    color: var(--gray-text);
    cursor: pointer;
    flex: 1;
}

/* Navigation */
.survey-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--spacing-3xl);
    padding-top: var(--spacing-xl);
}

    .survey-nav button {
        background-color: var(--dark-blue);
        color: var(--white);
        border: none;
        padding: 0.875rem var(--spacing-xl);
        border-radius: var(--radius-md);
        font-size: var(--font-base);
        font-weight: 600;
        cursor: pointer;
        transition: all var(--transition-fast);
        display: flex;
        align-items: center;
        gap: var(--spacing-sm);
        box-shadow: 0 2px 4px rgba(8, 56, 108, 0.2);
    }

        .survey-nav button:hover {
            background-color: var(--darker-blue);
            transform: translateY(-1px);
            box-shadow: 0 4px 8px rgba(8, 56, 108, 0.3);
        }

        .survey-nav button:focus-visible {
            outline: 2px solid var(--dark-blue);
        }

/* Survey Progress Indicator */
.survey-progress-container {
    position: fixed;
    top: 120px;
    right: var(--spacing-xl);
    background-color: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    border: 1px solid var(--border-light);
    min-width: 220px;
}

.survey-progress-text {
    font-size: var(--font-md);
    color: var(--gray-muted);
    margin-bottom: var(--spacing-md);
    text-align: right;
    font-weight: 500;
}

.survey-progress-bar-container {
    width: 200px;
    height: 8px;
    background-color: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
}

.survey-progress-bar {
    height: 100%;
    background-color: var(--primary-blue);
    transition: width var(--transition-slow);
    border-radius: 4px;
}

/* ===================================================== */
/* REVIEW MODE STYLES                                    */
/* ===================================================== */

.review-mode-banner {
    background-color: var(--login-blue);
    padding: var(--spacing-md) var(--spacing-lg);
}

.review-mode-banner-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    justify-content: center;
}

.review-mode-icon {
    width: 1.25rem;
    height: 1.25rem
}

.review-button-section {
    background-color: #c6e0f6;
}

.review-button-container {
    padding: var(--spacing-md) var(--spacing-xl);
    justify-content: end;
    gap: 1rem;
    text-align: left;
    display: flex;
}

/* ===================================================== */
/* RESPONSIVE DESIGN                                     */
/* ===================================================== */
@media (max-width: 1400px) {
    .header-logo {
        width: 20rem;
        height: 2.5rem;
    }
}

@media (max-width: 1024px) {
    .header-authenticated {
        padding: var(--spacing-lg);
        gap: var(--spacing-sm);
        height: 4.5rem;
    }
}

@media (max-width: 768px) {
    .survey-container {
        padding: var(--spacing-md);
        margin: 0;
        max-width: 100%;
    }

    .survey-title {
        font-size: var(--spacing-xl);
    }

    .survey-subtitle {
        font-size: 1.25rem;
    }

    .survey-progress-container {
        position: static;
        margin-bottom: var(--spacing-md);
        width: 100%;
        text-align: center;
    }

    .survey-progress-bar-container {
        width: 100%;
    }

    .survey-nav {
        flex-direction: column;
        gap: var(--spacing-md);
    }

        .survey-nav button {
            width: 100%;
            justify-content: center;
        }

    .footer-simple {
        padding: var(--spacing-md);
    }

    .login-container {
        padding: var(--spacing-md) var(--spacing-sm);
        min-height: 60vh;
    }

    .login-form-content {
        padding: var(--spacing-xl) var(--spacing-lg);
    }

    /* Responsive slider adjustments */
    .slider-labels {
        font-size: var(--font-sm);
    }

        .slider-labels span {
            max-width: 120px;
        }

    /* Responsive table - vertical headers */
    .survey-table thead th,
    .table thead th {
        vertical-align: bottom;
        padding: var(--spacing-sm) var(--spacing-xs);
        font-size: var(--font-sm);
        height: 120px;
        text-align: center;
    }

    .survey-table thead th span,
    .table thead th span {
        writing-mode: vertical-lr;
        text-orientation: mixed;
        transform: rotate(180deg);
        display: inline-block;
        white-space: nowrap;
        line-height: 1;
    }

    .survey-table thead th:first-child,
    .table thead th:first-child {
        writing-mode: horizontal-tb;
        transform: none;
        text-align: left;
        vertical-align: bottom;
        padding-left: var(--spacing-sm);
        min-width: 100px;
        max-width: 140px;
    }

    .survey-table tbody td,
    .table tbody td {
        padding: var(--spacing-sm) var(--spacing-xs);
        font-size: var(--font-sm);
    }

    .survey-table tbody td:first-child,
    .table tbody td:first-child {
        padding-left: var(--spacing-sm);
        min-width: 100px;
        max-width: 140px;
        word-wrap: break-word;
        font-size: var(--font-sm);
    }

    .survey-table input[type="radio"],
    .table input[type="radio"] {
        width: 0.875rem;
        height: 0.875rem;
    }
}

@media (max-width: 640px) {
    .header-nav-item b {
        display: none;
    }

    .slider-labels {
        font-size: var(--font-sm);
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }

        .slider-labels span {
            text-align: center;
            max-width: none;
        }
}

@media (max-width: 480px) {
    .survey-title {
        font-size: 1.75rem;
    }

    .survey-subtitle {
        font-size: 1.1rem;
    }
}

/* ===================================================== */
/* HOME PAGE STYLES                                     */
/* ===================================================== */

/* Progress Section */
.home-progress-section {
    background-color: #c6e0f6;
    padding-top: var(--spacing-md);
}

.progress-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
    height: 60px;
}

/* Base progress line (gray) */
.progress-line {
    position: absolute;
    top: 0.7rem;
    left: var(--spacing-xl);
    right: var(--spacing-xl);
    height: 4px;
    background-color: #bcc9ce;
    border-radius: 2px;
}

    /* Completed progress line overlay (blue) */
    .progress-line::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        background-color: var(--dark-blue);
        border-radius: 2px;
        width: 33.33%;
        transition: width var(--transition-medium);
    }

.progress-step {
    position: absolute;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-icon {
    width: 2rem;
    height: 2rem;
    z-index: 2;
}

.progress-step.completed .step-icon {
    background-color: var(--dark-blue);
    border-radius: 50%;
}

.step-label {
    font-size: var(--font-sm);
    color: var(--gray-dark);
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

/* Completed step styling */
.progress-step.completed .step-label {
    font-weight: 600;
    color: var(--dark-blue);
}

/* Active/current step styling */
.progress-step.current .step-label {
    font-weight: 600;
    color: var(--dark-blue);
}

/* Pending step styling */
.progress-step.pending .step-label {
    color: var(--gray-medium);
}

/* Different completion states */
.progress-container.completion-0 .progress-line::before {
    width: 0%;
}

.progress-container.completion-1 .progress-line::before {
    width: 33.33%;
}

.progress-container.completion-2 .progress-line::before {
    width: 66.66%;
}

.progress-container.completion-3 .progress-line::before {
    width: 100%;
}

/* Welcome Section */
.home-welcome-section {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.home-welcome-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-sm);
    font-family: 'Poppins', sans-serif;
}

.home-welcome-subtitle {
    font-size: var(--font-base);
    color: var(--gray-text);
    margin: 0;
}

/* Home Banner */
.home-banner {
    background: #A32490;
    border-radius: var(--radius-lg);
    padding: var(--spacing-3xl);
    margin-bottom: var(--spacing-3xl);
    color: var(--white);
}

.home-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-3xl);
}

.home-text {
    flex: 1;
    margin-left: var(--spacing-xl);
}

.home-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    font-family: 'Poppins', sans-serif;
    line-height: 1.2;
}

.home-description {
    font-size: var(--font-lg);
    margin-bottom: var(--spacing-xl);
    opacity: 0.95;
}

.home-button {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: var(--spacing-md) var(--spacing-xl);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-base);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-bottom: 12px;
}

    .home-button:hover {
        background-color: var(--darker-blue);
        transform: translateY(-1px);
    }

    .home-button:focus-visible {
        outline: 2px solid var(--white);
        outline-offset: 2px;
    }

.home-image {
    flex: 0 0 200px;
    margin-left: var(--spacing-3xl);
}

    .home-image img {
        max-width: 100%;
        height: auto;
    }

/* Responsive Design for Home */
@media (max-width: 768px) {
    .home-progress-section {
        margin: calc(-1 * var(--spacing-md)) calc(-1 * var(--spacing-md)) var(--spacing-xl);
        padding: var(--spacing-lg) var(--spacing-md);
    }

    .progress-steps {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .step-connector {
        width: 2px;
        height: 30px;
        max-width: none;
    }

    .home-welcome-title {
        font-size: 1.75rem;
    }

    .home-content {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-xl);
    }

    .home-title {
        font-size: 1.75rem;
    }

    .home-description {
        font-size: var(--font-base);
    }
}

@media (max-width: 480px) {
    .step-label {
        font-size: var(--font-xs);
    }

    .home-welcome-title {
        font-size: 1.5rem;
    }

    .home-banner {
        padding: var(--spacing-xl) var(--spacing-lg);
    }

    .home-title {
        font-size: 1.5rem;
    }
}

/* ===================================================== */
/* SURVEY APPROVAL SCREENS STYLES                        */
/* ===================================================== */

.approval-form-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl) var(--spacing-md);
    margin: var(--spacing-3xl);
}

.approval-form-wrapper {
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.approval-form-title {
    font-size: 1.5rem;
    color: var(--dark-blue);
    margin-bottom: var(--spacing-md);
    font-family: 'Poppins', sans-serif;
}

.approval-form-subtitle {
    font-size: var(--font-base);
    color: var(--gray-text);
    margin: var(--spacing-md) 0;
}

/* Responsive Design for Approval screens */
@media (max-width: 768px) {

    .approval-form-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .approval-form-title {
        font-size: 1.5rem;
    }
}

/* ===================================================== */
/* SURVEYS PAGE STYLES                                  */
/* ===================================================== */

/* Main Content Layout */
.surveys-content {
    display: flex;
    gap: var(--spacing-3xl);
    align-items: stretch;
}

.surveys-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.surveys-sidebar {
    flex: 0 0 320px;
    display: flex;
    flex-direction: column;
    padding-top: 28px;
    padding-bottom: 45px;
}
/* Section Titles */
.surveys-section {
    margin-bottom: var(--spacing-3xl);
}

.surveys-section-title {
    font-size: var(--font-lg);
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: var(--spacing-lg);
    font-family: 'Poppins', sans-serif;
}

/* Tables - Extending existing table styles */
.surveys-table-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.surveys-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

    .surveys-table thead th {
        background-color: #c9d6e8;
        padding: var(--spacing-md) var(--spacing-lg);
        text-align: left;
        font-size: var(--font-s);
        color: var(--dark-blue);
        border: none;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .surveys-table tbody td {
        padding: var(--spacing-lg);
        border-bottom: 1px solid var(--border-light);
        background-color: var(--white);
        vertical-align: middle;
        font-size: var(--font-base);
        color: var(--gray-dark);
    }

    .surveys-table tbody tr:last-child td {
        border-bottom: none;
    }

/* Action Buttons */
.action-button {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--primary-blue);
    font-weight: 600;
    font-size: var(--font-sm);
    cursor: pointer;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-fast);
}

    .action-button:hover {
        background-color: var(--gray-light);
    }

.action-icon {
    width: 16px;
    height: 16px;
}

/* Responses Cell with Progress Bar */
.responses-cell {
    min-width: 200px;
}

.response-count {
    display: block;
    color: var(--gray-text);
    font-size: var(--font-sm);
    margin-bottom: var(--spacing-xs);
}

.response-progress {
    width: 100%;
    height: 6px;
    background-color: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.response-progress-bar {
    height: 100%;
    background-color: var(--teal);
    transition: width var(--transition-medium);
}

/* Action Dropdown */
.action-dropdown {
    position: relative;
}

.custom-dropdown {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    color: var(--gray-text);
    font-size: var(--font-sm);
    cursor: pointer;
    padding: var(--spacing-xs) var(--spacing-lg) var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-fast);
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1em 1em;
    min-width: 100px;
}

    .custom-dropdown:hover {
        background-color: var(--gray-light);
    }

    .custom-dropdown:focus {
        outline: none;
        background-color: var(--gray-light);
        border: 1px solid var(--primary-blue);
    }

/* Remove the old dropdown-button styles since we're using actual select */
.dropdown-button {
    display: none;
}

/* Sidebar Illustration */
.sidebar-illustration {
    background: #A32490;
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    flex-grow: 1;
    position: relative;
    overflow: hidden;
    color: var(--white);
}

    .sidebar-illustration img {
        max-width: 200px;
        height: auto;
        border-radius: var(--radius-md);
        position: relative;
        z-index: 2;
    }

/* Responsive Design */
@media (max-width: 1024px) {
    .surveys-content {
        flex-direction: column;
    }

    .surveys-sidebar {
        flex: none;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {

    .surveys-table thead th,
    .surveys-table tbody td {
        padding: var(--spacing-sm);
        font-size: var(--font-sm);
    }

    .calendar-widget {
        padding: var(--spacing-md);
    }

    .response-count {
        font-size: var(--font-xs);
    }
}

@media (max-width: 480px) {

    .surveys-table {
        font-size: var(--font-xs);
    }

    .calendar-grid {
        gap: 1px;
    }

    .calendar-day {
        font-size: var(--font-xs);
    }
}

/* ===================================================== */
/* BUTTON STYLES                                         */
/* ===================================================== */

.grey-approve-btn {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: var(--spacing-sm) var(--spacing-md);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: 'Inter', sans-serif;
}

.dark-blue-btn {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: var(--spacing-sm) var(--spacing-2xl);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: 'Inter', sans-serif;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.grey-btn {
    background-color: #bcc9ce;
    color: var(--dark-blue);
    padding: var(--spacing-sm) var(--spacing-2xl);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: 'Inter', sans-serif;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

/* ===================================================== */
/* CUSTOM DATE PICKER STYLES                            */
/* ===================================================== */

.custom-date-picker {
    position: relative;
    display: inline-block;
    width: 200px;
}

.date-display-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    background-color: white;
    cursor: pointer;
}

    .date-display-input:hover {
        border-color: #0078d7;
    }

.form-control {
    cursor: pointer;
    background-color: #fff;
}

.calendar-popup {
    position: absolute;
    top: 45px;
    left: 0;
    z-index: 1000;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    width: 300px;
    padding: 1rem;
    box-sizing: border-box;
    display: none;
}

    .calendar-popup.show {
        display: block;
    }

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.nav-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 8px;
    color: #0078d7;
}

    .nav-btn:hover {
        opacity: 0.7;
    }

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.day-header {
    text-align: center;
    font-weight: 600;
    font-size: 0.8rem;
    color: #666;
    padding: 4px 0;
}

.day {
    text-align: center;
    padding: 8px 0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s ease;
    min-width: 0;
}

    .day:not(.empty):hover {
        background: #f0f8ff;
    }

    .day.selected {
        background: #0078d7;
        color: #fff;
    }

    .day.empty {
        cursor: default;
    }

.calendar-actions {
    display: flex;
    gap: 8px;
    margin-top: 1rem;
}

.save-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
}

.save-btn {
    background-color: #0078d7;
    color: white;
}

    .save-btn:hover {
        background: #005fa3;
    }

.cancel-btn {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--font-base);
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

    .cancel-btn:hover {
        background: #e0e0e0;
    }

.surveys-table-wrapper {
    overflow: visible !important;
}

.surveys-table {
    overflow: visible !important;
}

    .surveys-table td {
        overflow: visible !important;
        position: relative; /* so absolute popup is positioned correctly */
    }

/* ===================================================== */
/* SURVEY FORM SPECIFIC STYLES                           */
/* ===================================================== */

/* Completion message styles */
.completion-container {
    text-align: center;
    padding: 40px 20px;
}

.completion-title {
    color: #003d5c;
    margin-bottom: 10px;
}

.completion-subtitle {
    color: #666;
    margin-bottom: 40px;
}

.completion-thank-you {
    color: #003d5c;
    margin-bottom: 30px;
}

.completion-message {
    margin-bottom: 20px;
    line-height: 1.6;
}

.completion-support-text {
    line-height: 1.6;
}

/* Hidden section default */
.survey-section-hidden {
    display: none;
}

/* Rating scale input hidden */
.rating-input-hidden {
    display: none;
}

/* Slider labels layout */
.slider-labels-flex {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.slider-label-left {
    flex: 1;
    text-align: left;
}

.slider-label-center {
    flex: 1;
    text-align: center;
}

.slider-label-right {
    flex: 1;
    text-align: right;
}

/* Progress step positioning */
.progress-step-left {
    left: 0;
}

.progress-step-center-left {
    left: 33.33%;
    transform: translateX(-50%);
}

.progress-step-center-right {
    left: 66.66%;
    transform: translateX(-50%);
}

.progress-step-right {
    right: 0;
}

/* Review button visibility */
.btn-hidden {
    display: none;
}
/* Icon buttons for actions */
.action-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: transparent;
    color: #0078d7;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    text-decoration: none;
}

    .icon-button:hover {
        background: #f0f8ff;
        border-color: #0078d7;
        color: #005a9e;
    }

    .icon-button svg {
        width: 16px;
        height: 16px;
    }

/* ===================================================== */
/* USER MANAGEMENT PAGE STYLES                           */
/* ===================================================== */

/* Section header with filters */
.user-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

    .user-section-header .surveys-section-title {
        margin: 0;
    }

/* Filter section */
.user-filter-section {
    display: flex;
    gap: 12px;
}

    .user-filter-section label {
        margin-right: 8px;
        font-weight: 600;
        color: var(--gray-text);
    }

    .user-filter-section select {
        padding: 8px 16px;
        border: 1px solid var(--border-light);
        border-radius: 4px;
        font-size: 14px;
        min-width: 200px;
    }

    .user-filter-section .home-button {
        width: auto;
        white-space: nowrap;
        margin-bottom: 0;
        padding: 8px 16px;
        font-size: 14px;
    }

    .user-filter-section .user-filter-action {
        display: inline-flex;
        align-items: flex-end;
    }

/* Role badges */
.role-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: var(--bg-table-odd);
    color: var(--primary-blue);
}

    .role-badge.inactive {
        background: var(--gray-light);
        color: var(--gray-muted);
    }

/* User statistics box */
.user-stats-box {
    margin-top: 16px;
    padding: 16px;
    background: var(--gray-light);
    border-radius: 8px;
}

    .user-stats-box h3 {
        margin: 0 0 8px 0;
        font-size: 14px;
        color: var(--primary-blue);
    }

    .user-stats-box p {
        margin: 4px 0;
        font-size: 13px;
        color: var(--primary-blue);
    }

/* Modal overlay */
.user-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Modal content box */
.user-modal-content {
    background: var(--white);
    padding: 32px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
}

    .user-modal-content h2 {
        margin-top: 0;
        color: var(--gray-text);
    }

/* Modal form field */
.user-modal-field {
    margin: 20px 0;
}

    .user-modal-field label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
    }

    .user-modal-field select {
        width: 100%;
        padding: 8px;
        border: 1px solid var(--border-light);
        border-radius: 4px;
    }

/* Modal action buttons */
.user-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

    .user-modal-actions button {
        flex: 1;
        box-sizing: border-box;
    }

    .user-modal-actions .home-button {
        border: 1px solid transparent;
        margin-bottom: 0;
    }

/* ── Sidebar Card ── */
.survey-journey-card {
    position: relative;
    background: linear-gradient(180deg, #A32490 0%, #6E1660 100%);
    color: white;
    border-radius: 18px;
    padding: 28px 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Decorative circles */
.survey-journey-card::before,
.survey-journey-card::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}

.survey-journey-card::before {
    width: 160px;
    height: 160px;
    top: -60px;
    right: -40px;
}

.survey-journey-card::after {
    width: 120px;
    height: 120px;
    bottom: -50px;
    left: -30px;
}

/* Header */
.survey-journey-eyebrow {
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 8px;
}

.survey-journey-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

/* Steps */
.survey-journey-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 22px 0;
    counter-reset: step;
}

.survey-journey-step {
    position: relative;
    padding-left: 36px;
    margin-bottom: 20px;
}

/* Large faded numbers */
.survey-journey-step::before {
    content: counter(step);
    counter-increment: step;
    position: absolute;
    left: 0;
    top: -4px;
    font-size: 28px;
    font-weight: 700;
    color: rgba(255,255,255,0.25);
}

.survey-journey-step-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.survey-journey-step-body {
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.85;
}

/* Buttons */
.survey-journey-actions {
    margin-top: 10px;
}

.survey-journey-cta {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: #1C2A8C;
    color: white;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 10px;
    transition: background 0.2s ease;
}

.survey-journey-cta:hover {
    background: #14206a;
}

/* Secondary button */
.survey-journey-cta--secondary {
    background: rgba(255,255,255,0.15);
}

.survey-journey-cta--secondary:hover {
    background: rgba(255,255,255,0.25);
}

/* Required field indicator */
.required-indicator {
    color: red;
}

/* Field validation error messages */
.field-error {
    color: red;
    font-size: 0.85em;
}
