/* ==================== GLOBAL STYLES ==================== */

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

:root {
    /* Color palette - warm and inviting */
    --primary-bg: #fdfcfb;
    --secondary-bg: #f8f3ef;
    --chat-bg: #fdfcfb;
    --sidebar-bg: #f8f3ef;
    /* Warm Rose/Coral - primary accent */
    --accent-primary: #ff8fa3;
    --accent-primary-hover: #ff7a91;
    --accent-primary-light: #ffc2cc;
    /* Soft Lavender - bot messages */
    --lavender: #e8dff5;
    --lavender-dark: #d4c4e8;
    /* Message colors */
    --user-msg-bg: #ff8fa3;
    --user-msg-text: #ffffff;
    --bot-msg-bg: #e8dff5;
    --bot-msg-text: #4a4458;
    /* Button colors */
    --button-bg: #ff8fa3;
    --button-hover: #ff7a91;
    --button-text: #ffffff;
    /* Input colors */
    --input-bg: #f8f3ef;
    --input-border: #e8dff5;
    --input-focus: #ff8fa3;
    /* Text colors */
    --text-primary: #3d3a42;
    --text-secondary: #6b6572;
    --border-color: #e8dff5;
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--secondary-bg);
    color: var(--text-primary);
    line-height: 1.5;
    overflow: hidden;
}

/* ==================== LAYOUT ==================== */

.app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

.sidebar {
    flex-shrink: 0;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
}

.left-sidebar {
    width: 280px;
    display: flex;
    flex-direction: column;
}

.right-sidebar {
    width: 280px;
    border-right: none;
    border-left: 1px solid var(--border-color);
}

.sidebar-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
}

    .sidebar-header h2 {
        font-size: 20px;
        font-weight: 600;
        color: var(--text-primary);
    }

.sidebar-content {
    padding: var(--spacing-md);
    flex: 1;
}

/* ==================== INSTRUCTIONS TAB ==================== */

#instructions-tab.open {
    background: #4a4458;
}

#instructions-content {
    display: none;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    font-size: 12px;
    background: rgba(74, 68, 88, 0.95);
    color: #fdfcfb;
    border-radius: 0 0 10px 10px;
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(255, 143, 163, 0.15);
    max-height: 90vh; /* limit height to 60% of viewport */
    overflow-y: auto; /* vertical scroll when needed */
}

    #instructions-content.open {
        display: block !important;
        animation: fadeIn 1.3s;
    }

    #instructions-content.closing {
        display: block !important;
        animation: fadeOut 3.3s;
    }


@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}


/* ==================== CHAT CONTAINER ==================== */

.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--chat-bg);
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    background-color: var(--primary-bg);
}

.chat-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

    .chat-title h1 {
        font-size: 18px;
        font-weight: 600;
        color: var(--text-primary);
    }

/* Current State Badge */
.current-state-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--lavender) 0%, rgba(255, 143, 163, 0.25) 100%);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-left: var(--spacing-md);
    animation: fadeIn 0.3s ease;
}

    .current-state-badge .state-label {
        font-size: 11px;
        font-weight: 600;
        color: var(--text-secondary);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .current-state-badge .state-name {
        font-size: 13px;
        font-weight: 600;
        color: var(--text-primary);
    }

    /* Pulse animation when state changes */
    .current-state-badge.state-changed {
        animation: statePulse 0.5s ease;
    }

@keyframes statePulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(232, 223, 245, 0.6);
    }

    100% {
        transform: scale(1);
    }
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ff8fa3;
}

    .status-indicator.online {
        background-color: #ff8fa3;
    }

.header-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.icon-btn {
    width: 36px;
    height: 36px;
    border: none;
    background-color: transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

    .icon-btn:hover {
        background-color: var(--input-bg);
        color: var(--text-primary);
    }

/* ==================== ONBOARDING PROGRESS BAR ==================== */

.onboarding-progress {
    padding: var(--spacing-sm) var(--spacing-lg);
    background: linear-gradient(135deg, rgba(232, 223, 245, 0.3) 0%, rgba(255, 143, 163, 0.1) 100%);
    border-bottom: 1px solid var(--border-color);
}

.progress-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.progress-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .progress-label.progress-start {
        color: var(--lavender-dark);
    }

    .progress-label.progress-end {
        color: var(--text-secondary);
    }

        .progress-label.progress-end.completed {
            color: var(--lavender-dark);
        }

.progress-track {
    flex: 1;
    height: 8px;
    background-color: rgba(232, 223, 245, 0.4);
    border-radius: 4px;
    position: relative;
    overflow: visible;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(135deg, var(--lavender) 0%, rgba(255, 143, 163, 0.5) 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
    box-shadow: 0 2px 8px rgba(232, 223, 245, 0.5);
}

.progress-phases {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 2px;
}

.progress-phase {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: rgba(232, 223, 245, 0.6);
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    cursor: default;
}

    .progress-phase.active {
        background: linear-gradient(135deg, var(--lavender) 0%, rgba(255, 143, 163, 0.6) 100%);
        transform: scale(1.2);
        box-shadow: 0 2px 8px rgba(232, 223, 245, 0.6);
    }

    .progress-phase.completed {
        background: linear-gradient(135deg, var(--lavender-dark) 0%, rgba(255, 143, 163, 0.7) 100%);
    }

    .progress-phase::after {
        content: attr(data-tooltip);
        position: absolute;
        bottom: calc(100% + 8px);
        left: 50%;
        transform: translateX(-50%);
        background: var(--text-primary);
        color: #fff;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 10px;
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transition: all 0.2s ease;
        pointer-events: none;
    }

    .progress-phase:hover::after {
        opacity: 1;
        visibility: visible;
    }

    .progress-phase.active::after,
    .progress-phase.completed::after {
        opacity: 1;
        visibility: visible;
    }

/* Hide progress bar when onboarding is complete and user scrolls */
.onboarding-progress.minimized {
    padding: var(--spacing-xs) var(--spacing-lg);
}

    .onboarding-progress.minimized .progress-container {
        gap: var(--spacing-sm);
    }

    .onboarding-progress.minimized .progress-track {
        height: 4px;
    }

    .onboarding-progress.minimized .progress-phase {
        width: 8px;
        height: 8px;
    }

        .onboarding-progress.minimized .progress-phase::after {
            display: none;
        }

/* ==================== MESSAGES ==================== */

.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.message {
    display: flex;
    gap: var(--spacing-sm);
    max-width: 70%;
    animation: messageSlideIn 0.3s ease;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message.bot {
    align-self: flex-start;
}

.message-bubble {
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-lg);
    word-wrap: break-word;
    box-shadow: var(--shadow-sm);
}

.message.user .message-bubble {
    background: linear-gradient(135deg, var(--lavender) 0%, rgba(255, 143, 163, 0.25) 100%);
    color: var(--text-primary);
    border-bottom-right-radius: var(--spacing-xs);
    box-shadow: 0 2px 8px rgba(232, 223, 245, 0.5);
    border: 1px solid var(--border-color);
}

.message.bot .message-bubble {
    background-color: #ffffff;
    color: var(--text-primary);
    border-bottom-left-radius: var(--spacing-xs);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--lavender);
}

.message-text {
    white-space: pre-wrap;
    line-height: 1.4;
}

.message-time {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: var(--spacing-xs);
    opacity: 0.7;
}

/* ==================== BUTTONS ==================== */

.button-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
    align-self: flex-start;
    max-width: 70%;
}

.button-row {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.chat-button {
    padding: var(--spacing-sm) var(--spacing-md);
    background: linear-gradient(135deg, var(--lavender) 0%, rgba(255, 143, 163, 0.25) 100%);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(232, 223, 245, 0.4);
}

    .chat-button:hover {
        background: linear-gradient(135deg, var(--lavender) 0%, rgba(255, 143, 163, 0.4) 100%);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(232, 223, 245, 0.5);
    }

    .chat-button:active {
        transform: translateY(0);
    }

    /* Button selection state */
    .chat-button.button-selected {
        background: linear-gradient(135deg, var(--lavender) 0%, rgba(255, 143, 163, 0.5) 100%);
        color: var(--text-primary);
        border-color: var(--lavender-dark);
        font-weight: 600;
    }

/* Disabled input state */
.input-disabled {
    cursor: not-allowed !important;
    background-color: #f8f3ef !important;
    opacity: 0.6;
}


/* Reply buttons - green theme */
/*.button-group[data-button-type="reply"] .chat-button {
    border-color: #28a745;
    color: #28a745;
}

.button-group[data-button-type="reply"] .chat-button:hover:not(:disabled) {
    background-color: #28a745;
    color: white;
}*/


/* ==================== TYPING INDICATOR ==================== */

.typing-indicator {
    display: flex;
    gap: var(--spacing-xs);
    padding: var(--spacing-md);
    background: linear-gradient(135deg, var(--lavender) 0%, rgba(255, 143, 163, 0.15) 100%);
    border-radius: var(--radius-lg);
    width: fit-content;
    align-self: flex-start;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(232, 223, 245, 0.4);
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--lavender-dark) 0%, rgba(255, 143, 163, 0.6) 100%);
    border-radius: 50%;
    animation: typingAnimation 1.4s infinite;
}

    .typing-dot:nth-child(2) {
        animation-delay: 0.2s;
    }

    .typing-dot:nth-child(3) {
        animation-delay: 0.4s;
    }

@keyframes typingAnimation {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.6;
    }

    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* ==================== INPUT AREA ==================== */

.input-area {
    padding: var(--spacing-md) var(--spacing-lg);
    border-top: 1px solid var(--border-color);
    background-color: var(--primary-bg);
}

.input-wrapper {
    display: flex;
    gap: var(--spacing-sm);
    align-items: flex-end;
    background: linear-gradient(135deg, rgba(232, 223, 245, 0.3) 0%, rgba(255, 143, 163, 0.1) 100%);
    border-radius: var(--radius-xl);
    padding: var(--spacing-sm);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(232, 223, 245, 0.3);
}

    .input-wrapper:focus-within {
        border-color: var(--lavender);
        background: linear-gradient(135deg, rgba(232, 223, 245, 0.4) 0%, rgba(255, 143, 163, 0.15) 100%);
        box-shadow: 0 4px 12px rgba(232, 223, 245, 0.4);
    }

#message-input {
    flex: 1;
    border: none;
    background-color: transparent;
    resize: none;
    outline: none;
    font-size: 15px;
    font-family: inherit;
    color: var(--text-primary);
    padding: var(--spacing-sm);
    max-height: 150px;
    line-height: 1.4;
}

    #message-input::placeholder {
        color: var(--text-secondary);
    }

.send-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: linear-gradient(135deg, var(--lavender) 0%, rgba(255, 143, 163, 0.4) 100%);
    color: var(--text-primary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(232, 223, 245, 0.5);
}

    .send-btn:hover {
        background: linear-gradient(135deg, var(--lavender) 0%, rgba(255, 143, 163, 0.6) 100%);
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(232, 223, 245, 0.6);
    }

    .send-btn:active {
        transform: scale(0.95);
    }

    .send-btn:disabled {
        background: var(--input-bg);
        opacity: 0.5;
        cursor: not-allowed;
    }

/* ==================== FILE MESSAGES ==================== */

.file-message {
    padding: var(--spacing-md);
    background-color: var(--input-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

    .file-message:hover {
        background-color: var(--border-color);
    }

.file-icon {
    width: 40px;
    height: 40px;
    background-color: var(--button-bg);
    color: var(--button-text);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 500;
    color: var(--text-primary);
}

.file-size {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Media messages */
.media-message {
    max-width: 100%;
    padding: 8px;
}

.chat-image {
    max-width: 100%;
    max-height: 400px;
    border-radius: var(--radius-md);
    display: block;
    margin: 0 auto;
    cursor: pointer;
}

    .chat-image:hover {
        opacity: 0.9;
    }

.chat-video {
    max-width: 100%;
    max-height: 400px;
    border-radius: var(--radius-md);
    display: block;
    margin: 0 auto;
    background-color: #000;
}

.media-caption {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 8px;
}

/* Audio message styling */
.audio-message {
    max-width: 100%;
    padding: 12px;
}

.audio-player {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--primary-bg);
    border-radius: var(--radius-lg);
    padding: 8px 12px;
    margin-bottom: 8px;
}

.play-button, .pause-button {
    background: var(--button-bg);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
}

    .play-button:hover, .pause-button:hover {
        opacity: 0.8;
    }

.audio-control {
    flex: 1;
    height: 30px;
}

.audio-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.audio-duration {
    font-size: 12px;
    color: var(--text-secondary);
    font-family: monospace;
}

.audio-text {
    font-size: 14px;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 4px;
}


/* Optional: Lightbox effect for images */
.chat-image {
    transition: transform 0.2s ease;
}

    .chat-image:active {
        transform: scale(0.98);
    }



/* ==================== ERROR MESSAGES ==================== */

.error-message {
    background-color: #fff0f3;
    border: 1px solid #ffb3c1;
    color: #c9184a;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    align-self: flex-start;
    max-width: 70%;
}

/* ==================== SCROLLBAR ==================== */

.messages-container::-webkit-scrollbar,
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.messages-container::-webkit-scrollbar-track,
.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.messages-container::-webkit-scrollbar-thumb,
.sidebar::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

    .messages-container::-webkit-scrollbar-thumb:hover,
    .sidebar::-webkit-scrollbar-thumb:hover {
        background: var(--text-secondary);
    }


/* ==================== LEFT SIDEBAR ==================== */

/* Notification box layout for left sidebar dashboard attributes */
.attr-box {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 180px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: linear-gradient(135deg, var(--lavender) 0%, rgba(255, 143, 163, 0.15) 100%);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .attr-box:hover {
        transform: translateX(4px);
        box-shadow: var(--shadow-md);
    }

/* Key (attribute name) 30-35% of box height */
.attr-label {
    flex: 0 0 auto;
    padding: 10px 12px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Value (attribute value) 65-70% of box height */
.attr-value {
    flex: 1 1 auto;
    padding: 12px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-word;
    white-space: normal;
}

.placeholder {
    padding: 16px 8px;
    text-align: center;
    color: var(--text-secondary, #6b6572);
    font-size: 14px;
    font-style: italic;
    opacity: 0.7;
}

/* Welcome placeholder for empty insights panel */
.placeholder-welcome {
    padding: var(--spacing-md);
    text-align: center;
    color: var(--text-secondary);
    animation: fadeIn 0.5s ease;
}

    .placeholder-welcome h3 {
        font-size: 18px;
        font-weight: 600;
        color: var(--text-primary);
        margin-bottom: var(--spacing-sm);
    }

    .placeholder-welcome p {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: var(--spacing-md);
        color: var(--text-secondary);
    }

.placeholder-items {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.placeholder-item {
    background: linear-gradient(135deg, var(--lavender) 0%, rgba(255, 143, 163, 0.15) 100%);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--text-primary);
    text-align: left;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .placeholder-item:hover {
        transform: translateX(4px);
        box-shadow: var(--shadow-sm);
    }

/* ==================== RIGHT SIDEBAR ==================== */

.right-button {
    background: linear-gradient(135deg, var(--lavender) 0%, rgba(255, 143, 163, 0.15) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    font-weight: 500;
    white-space: normal;
    height: auto;
    text-align: left;
    padding: var(--spacing-sm) var(--spacing-md);
    width: 100%;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

    .right-button:hover {
        transform: translateX(4px);
        box-shadow: var(--shadow-md);
        background: linear-gradient(135deg, var(--lavender) 0%, rgba(255, 143, 163, 0.3) 100%);
    }

/* Topic Groups */
.topic-group {
    margin-bottom: var(--spacing-lg);
}

.topic-group-header {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--surface);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    width: 100%;
    text-align: left;
}

.topic-group .button-group {
    width: 100%;
    max-width: 100%;
}

/* ==================== BOTH LEFT AND RIGHT SIDEBAR ==================== */

/* Color Definitions: applies in BOTH lef and right sidebar */
.agent-col-receptionist {
    background-color: #90D5FF;
    color: white;
}

.agent-col-microanalysis {
    background-color: #DAB1DA;
    color: white;
}

.agent-col-barriers {
    background-color: #E73121;
    color: white;
}

.agent-col-planning {
    background-color: #A49A87;
    color: white;
}

.agent-col-MI {
    background-color: #FFFFC5;
    color: white;
}

.agent-col-cbt {
    background-color: #00CEC8;
    color: white;
}

.agent-col-vd {
    background-color: #89F336;
    color: white;
}

.agent-col-align {
    background-color: #FFA800;
    color: white;
}

.agent-col-er {
    background-color: #C11C84;
    color: white;
}



/* ==================== RESPONSIVE ==================== */

@media (max-width: 1024px) {
    .right-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .left-sidebar {
        display: none;
    }

    .message {
        max-width: 85%;
    }

    .chat-container {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .chat-header {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .messages-container {
        padding: var(--spacing-md);
    }

    .input-area {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .message {
        max-width: 90%;
    }
}

/* PLUS: ==================== ENHANCED MOBILE FIXES ==================== */
/* Fix viewport height issues on mobile */
@supports (-webkit-touch-callout: none) {
    /* iOS-specific fix for viewport height */
    .app-container {
        height: -webkit-fill-available;
    }
}

/* Base mobile improvements */
@media (max-width: 768px) {
    body {
        overflow: auto; /* Allow scrolling on mobile if needed */
    }

    .app-container {
        min-height: 100vh;
        min-height: -webkit-fill-available;
        height: auto; /* Override fixed height */
        display: flex;
        flex-direction: column;
    }

    .chat-container {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0; /* Critical for flex children */
        height: 100vh;
        height: -webkit-fill-available;
    }

    .messages-container {
        flex: 1;
        min-height: 0; /* Prevent flex overflow */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }

    .input-area {
        flex-shrink: 0; /* Prevent input from being squeezed */
        position: relative;
        bottom: 0;
        width: 100%;
        background-color: var(--primary-bg);
        /* Add safe area for notched devices */
        padding-bottom: calc(var(--spacing-md) + env(safe-area-inset-bottom));
    }

    /* Ensure input wrapper is touch-friendly */
    .input-wrapper {
        min-height: 44px; /* iOS recommended minimum touch target */
    }

    #message-input {
        font-size: 16px; /* Prevent iOS zoom on focus */
        min-height: 44px;
    }

    .send-btn {
        width: 44px; /* Larger touch target */
        height: 44px;
        flex-shrink: 0;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .chat-header {
        padding: var(--spacing-sm) var(--spacing-md);
        flex-shrink: 0;
    }

    .messages-container {
        padding: var(--spacing-sm);
    }

    .input-area {
        padding: var(--spacing-sm);
        padding-bottom: calc(var(--spacing-sm) + env(safe-area-inset-bottom));
    }

    .message {
        max-width: 90%;
    }

    /* Ensure buttons are touch-friendly */
    .chat-button {
        min-height: 44px;
        padding: var(--spacing-sm) var(--spacing-md);
    }

    /* Optimize header for small screens */
    .chat-title h1 {
        font-size: 16px;
    }

    .icon-btn {
        width: 40px;
        height: 40px;
    }
}

/* Landscape mobile mode */
@media (max-width: 768px) and (orientation: landscape) {
    .app-container {
        height: 100vh;
    }

    .chat-container {
        height: 100vh;
    }

    .messages-container {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .input-area {
        padding: var(--spacing-xs) var(--spacing-md);
    }
}

/* Prevent zoom on input focus for small text */
@media (max-width: 768px) {
    input, textarea, select {
        font-size: 16px !important; /* Prevents iOS zoom */
    }
}

/* Fix for mobile keyboard appearing */
@media (max-width: 768px) {
    .chat-container.keyboard-visible {
        height: 100vh;
        height: -webkit-fill-available;
    }
}

/* Mobile responsive adjustments for instructions tab */
@media (max-width: 768px) {
    #instructions-tab {
        padding: 6px 16px;
        font-size: 10px;
        border-radius: 0 0 8px 8px;
    }

    #instructions-content {
        padding: var(--spacing-md);
    }

        #instructions-content p {
            padding: var(--spacing-lg);
            max-width: 90%;
        }
}

@media (max-width: 480px) {
    #instructions-tab {
        padding: 6px 12px;
        font-size: 9px;
    }
}



/* ==================== UTILITIES ==================== */

.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ==================== INSTRUCTION MANUAL ==================== */

.instruction-manual {
    background: var(--secondary-bg);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.instruction-manual-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-lg);
    cursor: pointer;
}

.instruction-header {
    text-align: center;
    flex: 1;
}

.instruction-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.instruction-toggle-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(232, 223, 245, 0.5);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.instruction-toggle-btn:hover {
    background: rgba(232, 223, 245, 0.8);
    color: var(--text-primary);
}

.instruction-toggle-btn svg {
    transition: transform 0.2s ease;
}

.instruction-manual.minimized .instruction-toggle-btn svg {
    transform: rotate(180deg);
}

.instruction-manual.minimized .instruction-steps {
    display: none;
}

.instruction-steps {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: var(--spacing-sm);
    max-width: 100%;
    padding: 0 var(--spacing-lg) var(--spacing-sm);
}

.instruction-step {
    flex: 1;
    background: linear-gradient(135deg, var(--lavender) 0%, rgba(255, 143, 163, 0.15) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.instruction-step:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.step-content {
    flex: 1;
}

.step-content h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 2px 0;
}

.step-content p {
    font-size: 11px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* Responsive design for instruction manual */
@media (max-width: 968px) {
    .instruction-steps {
        flex-direction: column;
        align-items: stretch;
    }

    .instruction-step {
        max-width: 100%;
        flex-direction: row;
        align-items: flex-start;
        gap: var(--spacing-md);
    }
}

/* ==================== FEEDBACK MODAL ==================== */

/* Floating feedback button */
.feedback-floating-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-primary);
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feedback-floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 143, 163, 0.4);
}

/* Modal overlay */
.feedback-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1002;
    animation: fadeIn 0.3s;
}

.feedback-modal[hidden] {
    display: none;
}

/* Modal content */
.feedback-modal-content {
    background: var(--primary-bg);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.feedback-modal-content h2 {
    margin: 0 0 var(--spacing-lg) 0;
    font-size: 20px;
    color: var(--text-primary);
    text-align: center;
}

/* Close button */
.feedback-close-btn {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}

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

/* Form fields */
.feedback-field {
    margin-bottom: var(--spacing-lg);
}

.feedback-field label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.feedback-field textarea {
    width: 100%;
    min-height: 100px;
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    background: var(--input-bg);
}

.feedback-field textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.feedback-field input[type="email"] {
    width: 100%;
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 14px;
    background: var(--input-bg);
}

.feedback-field input[type="email"]:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* Emoji rating */
.emoji-rating {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
}

.emoji-rating button {
    font-size: 28px;
    background: none;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    padding: 8px;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}

.emoji-rating button:hover {
    transform: scale(1.2);
}

.emoji-rating button.selected {
    transform: scale(1.2);
    border-color: var(--accent-primary);
    background: var(--accent-primary-light);
}

/* Submit button */
.feedback-submit-btn {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.feedback-submit-btn:hover {
    background: var(--accent-primary-hover);
}

.feedback-submit-btn:active {
    transform: scale(0.98);
}

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

/* Status message */
.feedback-status {
    margin-top: var(--spacing-md);
    text-align: center;
    font-size: 14px;
}

.feedback-status.success {
    color: #2e7d32;
}

.feedback-status.error {
    color: #c9184a;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .feedback-floating-btn {
        bottom: 16px;
        right: 16px;
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .feedback-modal-content {
        padding: var(--spacing-lg);
    }

    .emoji-rating button {
        font-size: 24px;
        padding: 6px;
    }
}

/* ==================== HABIT CARD ==================== */

.habit-card {
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin: var(--spacing-md) var(--spacing-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    animation: fadeIn 0.3s ease;
}

.habit-card.minimized .habit-card-content,
.habit-card.minimized .habit-card-tabs {
    display: none;
}

.habit-card.minimized .habit-card-toggle svg {
    transform: rotate(180deg);
}

/* Habit Card Header */
.habit-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    background: linear-gradient(135deg, var(--lavender) 0%, rgba(255, 143, 163, 0.2) 100%);
    border-bottom: 1px solid var(--border-color);
}

.habit-card-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.habit-icon {
    font-size: 20px;
}

.habit-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.habit-card-actions {
    display: flex;
    gap: var(--spacing-xs);
}

.habit-card-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.habit-card-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
}

.habit-card-toggle svg {
    transition: transform 0.2s ease;
}

/* Habit Card Tabs */
.habit-card-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background: var(--secondary-bg);
}

.habit-tab {
    flex: 1;
    padding: var(--spacing-sm) var(--spacing-md);
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    position: relative;
}

.habit-tab:hover {
    color: var(--text-primary);
    background: rgba(232, 223, 245, 0.3);
}

.habit-tab.active {
    color: var(--text-primary);
    font-weight: 600;
}

.habit-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--lavender-dark) 0%, var(--accent-primary) 100%);
}

/* Habit Card Content */
.habit-card-content {
    padding: var(--spacing-md);
}

.habit-tab-content {
    display: none;
}

.habit-tab-content.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

/* Today Tab */
.today-question {
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.today-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.log-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md) var(--spacing-xl);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--primary-bg);
    cursor: pointer;
    transition: all 0.2s ease;
}

.log-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.log-btn.log-yes:hover {
    border-color: #4caf50;
    background: rgba(76, 175, 80, 0.1);
}

.log-btn.log-no:hover {
    border-color: #f44336;
    background: rgba(244, 67, 54, 0.1);
}

.log-btn.selected {
    transform: scale(1.05);
}

.log-btn.log-yes.selected {
    border-color: #4caf50;
    background: rgba(76, 175, 80, 0.15);
}

.log-btn.log-no.selected {
    border-color: #f44336;
    background: rgba(244, 67, 54, 0.15);
}

.log-icon {
    font-size: 32px;
    font-weight: bold;
}

.log-yes .log-icon {
    color: #4caf50;
}

.log-no .log-icon {
    color: #f44336;
}

.log-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Today Details (expanded form) */
.today-details {
    background: var(--secondary-bg);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-top: var(--spacing-md);
    animation: fadeIn 0.2s ease;
}

.detail-row {
    margin-bottom: var(--spacing-md);
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-row label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
}

.detail-input {
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: var(--primary-bg);
    color: var(--text-primary);
    transition: border-color 0.2s ease;
}

.detail-input:focus {
    outline: none;
    border-color: var(--lavender-dark);
}

/* Mood Picker */
.mood-picker {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-sm);
}

.mood-btn {
    flex: 1;
    padding: var(--spacing-sm);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--primary-bg);
    cursor: pointer;
    font-size: 24px;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.mood-btn:hover {
    transform: scale(1.1);
    opacity: 1;
}

.mood-btn.selected {
    border-color: var(--lavender-dark);
    background: var(--lavender);
    opacity: 1;
    transform: scale(1.1);
}

/* Submit Button */
.submit-log-btn {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    margin-top: var(--spacing-md);
    background: linear-gradient(135deg, var(--lavender) 0%, rgba(255, 143, 163, 0.4) 100%);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submit-log-btn:hover {
    background: linear-gradient(135deg, var(--lavender) 0%, rgba(255, 143, 163, 0.6) 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.submit-log-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Today Logged State */
.today-logged {
    text-align: center;
    padding: var(--spacing-md);
    animation: fadeIn 0.3s ease;
}

.logged-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.logged-icon {
    font-size: 24px;
}

.logged-icon.success {
    color: #4caf50;
}

.logged-icon.missed {
    color: #f44336;
}

.log-another-btn {
    padding: var(--spacing-xs) var(--spacing-md);
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.log-another-btn:hover {
    background: var(--secondary-bg);
    color: var(--text-primary);
}

/* Insights Tab */
.insights-placeholder,
.history-placeholder,
.attempts-placeholder {
    text-align: center;
    color: var(--text-secondary);
    padding: var(--spacing-md);
}

.insights-placeholder p,
.history-placeholder p,
.attempts-placeholder p {
    font-size: 14px;
    margin-bottom: var(--spacing-md);
}

.insight-item,
.history-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--secondary-bg);
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-sm);
    font-size: 13px;
    color: var(--text-secondary);
}

.placeholder-insight,
.placeholder-history {
    opacity: 0.6;
}

.insight-icon,
.history-icon {
    font-size: 18px;
}

/* Attempts Tab Stats */
.attempts-stats {
    display: flex;
    justify-content: space-around;
    padding: var(--spacing-md);
    background: linear-gradient(135deg, var(--lavender) 0%, rgba(255, 143, 163, 0.15) 100%);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

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

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Attempts List */
.attempts-list {
    max-height: 200px;
    overflow-y: auto;
}

.attempt-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.attempt-item:last-child {
    border-bottom: none;
}

.attempt-date {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    min-width: 80px;
}

.attempt-status {
    font-size: 18px;
}

.attempt-status.success {
    color: #4caf50;
}

.attempt-status.missed {
    color: #f44336;
}

.attempt-mood {
    font-size: 16px;
}

.attempt-notes {
    flex: 1;
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Habit Card Responsive */
@media (max-width: 768px) {
    .habit-card {
        margin: var(--spacing-sm);
        border-radius: var(--radius-md);
    }

    .habit-card-header {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .habit-name {
        font-size: 14px;
    }

    .habit-tab {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 12px;
    }

    .habit-card-content {
        padding: var(--spacing-sm);
    }

    .today-buttons {
        gap: var(--spacing-md);
    }

    .log-btn {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .log-icon {
        font-size: 28px;
    }

    .mood-btn {
        font-size: 20px;
        padding: var(--spacing-xs);
    }

    .attempts-stats {
        flex-wrap: wrap;
        gap: var(--spacing-sm);
    }

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

    .stat-value {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .habit-card-actions {
        gap: 2px;
    }

    .habit-card-btn {
        width: 28px;
        height: 28px;
    }

    .today-question {
        font-size: 14px;
    }

    .log-btn {
        padding: var(--spacing-sm);
    }

    .log-icon {
        font-size: 24px;
    }

    .log-label {
        font-size: 11px;
    }
}

/* Habit Card Minimized State */
.habit-card.minimized {
    max-height: 48px;
    overflow: hidden;
}

.habit-card.minimized .habit-card-tabs,
.habit-card.minimized .habit-card-content {
    display: none;
}

.habit-card.minimized .habit-card-header {
    border-radius: var(--radius-md);
}

/* ==================== WELCOME MODAL ==================== */

.welcome-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.welcome-modal[hidden] {
    display: none;
}

.welcome-modal-content {
    background: var(--primary-bg);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.welcome-modal-content h2 {
    margin: 0 0 var(--spacing-sm);
    color: var(--text-primary);
    font-size: 24px;
}

.welcome-modal-content > p {
    margin: 0 0 var(--spacing-lg);
    color: var(--text-secondary);
}

.welcome-options {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.welcome-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-lg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--secondary-bg);
    cursor: pointer;
    transition: all 0.2s;
}

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

.welcome-btn-primary {
    border-color: var(--accent-primary);
    background: var(--accent-primary-light);
}

.welcome-btn-primary:hover {
    background: var(--accent-primary);
}

.welcome-btn-primary:hover .welcome-label,
.welcome-btn-primary:hover .welcome-desc {
    color: white;
}

.welcome-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.welcome-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 16px;
}

.welcome-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: var(--spacing-xs);
}

/* Welcome Modal Mobile Styles */
@media (max-width: 480px) {
    .welcome-modal-content {
        padding: var(--spacing-lg);
        margin: var(--spacing-md);
    }

    .welcome-modal-content h2 {
        font-size: 20px;
    }

    .welcome-btn {
        padding: var(--spacing-md);
    }

    .welcome-icon {
        font-size: 1.5rem;
    }

    .welcome-label {
        font-size: 14px;
    }

    .welcome-desc {
        font-size: 12px;
    }
}
