:root {
    --primary-blue: #2563eb;
    --secondary-blue: #1e40af;
    --warning-orange: #f59e0b;
    --warning-bg: #fef3c7;
    --danger-red: #dc2626;
    --success-green: #16a34a;
    --gray-text: #4b5563;
    --gray-light: #9ca3af;
    --light-bg: #f9fafb;
    --white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;
    --transition: 0.2s ease;
}

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

body {
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--light-bg);
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.06) 1px, transparent 1px),
        linear-gradient(180deg, #f9fafb 0%, #e5e7eb 50%, #d1d5db 100%);
    background-size: 40px 40px, 40px 40px, 100% 100%;
    background-position: 0 0, calc(50% - 300px) 0, 0 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    color: var(--gray-text);
    line-height: 1.5;
}

.container {
    width: 100%;
    max-width: 600px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 6px solid #d1d5db;
    outline: 1px solid rgba(255, 255, 255, 0.9);
    outline-offset: 0;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 12px 24px -8px rgba(0, 0, 0, 0.15),
        0 4px 8px -2px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset,
        0 2px 0 rgba(255, 255, 255, 0.9) inset,
        0 2px 4px rgba(255, 255, 255, 0.8) inset;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 32px);
    max-height: 800px;
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.container.thinking {
    border-color: rgba(59, 130, 246, 0.8);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 12px 24px -8px rgba(0, 0, 0, 0.15),
        0 4px 8px -2px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset,
        0 2px 0 rgba(255, 255, 255, 0.9) inset,
        0 0 40px rgba(59, 130, 246, 0.3),
        0 0 80px rgba(59, 130, 246, 0.15);
    animation: thinkingGlow 2s ease-in-out infinite;
}

@keyframes thinkingGlow {
    0%, 100% {
        box-shadow: 
            0 25px 50px -12px rgba(0, 0, 0, 0.25),
            0 12px 24px -8px rgba(0, 0, 0, 0.15),
            0 4px 8px -2px rgba(0, 0, 0, 0.1),
            0 0 0 1px rgba(255, 255, 255, 0.8) inset,
            0 2px 0 rgba(255, 255, 255, 0.9) inset,
            0 0 30px rgba(59, 130, 246, 0.25),
            0 0 60px rgba(59, 130, 246, 0.1);
    }
    50% {
        box-shadow: 
            0 25px 50px -12px rgba(0, 0, 0, 0.25),
            0 12px 24px -8px rgba(0, 0, 0, 0.15),
            0 4px 8px -2px rgba(0, 0, 0, 0.1),
            0 0 0 1px rgba(255, 255, 255, 0.8) inset,
            0 2px 0 rgba(255, 255, 255, 0.9) inset,
            0 0 50px rgba(59, 130, 246, 0.4),
            0 0 100px rgba(59, 130, 246, 0.2);
    }
}

header {
    background: linear-gradient(180deg, var(--white) 0%, #fafbfc 100%);
    color: var(--gray-text);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 
        0 4px 12px -2px rgba(0, 0, 0, 0.08),
        0 2px 4px -1px rgba(0, 0, 0, 0.04),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
    position: relative;
    z-index: 10;
}

header h1 {
    font-size: 2.8125rem;
    font-weight: 700;
    font-family: 'Big Shoulders Display', sans-serif;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transition: all 0.4s ease;
}

.title-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.title-icon svg {
    width: 2.5rem;
    height: 2.5rem;
    transition: all 0.4s ease;
}

.container.thinking .title-icon svg {
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.5)) drop-shadow(0 0 20px rgba(59, 130, 246, 0.3));
    animation: iconGlow 2s ease-in-out infinite;
}

.container.thinking .title-icon svg .icon-stroke {
    stroke: url(#iconGradientActive);
}

@keyframes iconGlow {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.5)) drop-shadow(0 0 20px rgba(59, 130, 246, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.7)) drop-shadow(0 0 30px rgba(59, 130, 246, 0.5));
    }
}

.container.thinking header h1 {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1e40af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.5)) drop-shadow(0 0 20px rgba(59, 130, 246, 0.3));
    animation: titleGlow 2s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.5)) drop-shadow(0 0 20px rgba(59, 130, 246, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.7)) drop-shadow(0 0 30px rgba(59, 130, 246, 0.5));
    }
}

header .subtitle {
    font-size: 0.875rem;
    color: var(--gray-light);
    font-weight: 400;
}

.header-content {
    display: flex;
    flex-direction: column;
}

.help-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--white) 0%, var(--light-bg) 100%);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    font-size: 1rem;
    box-shadow: 
        0 2px 4px -1px rgba(0, 0, 0, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.help-icon:hover,
.help-icon.active {
    background: linear-gradient(180deg, #3b82f6 0%, var(--primary-blue) 100%);
    color: var(--white);
    border-color: var(--primary-blue);
    box-shadow: 
        0 4px 8px -2px rgba(37, 99, 235, 0.4),
        0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

.profile-button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--white) 0%, var(--light-bg) 100%);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    font-size: 1rem;
    box-shadow: 
        0 2px 4px -1px rgba(0, 0, 0, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
    padding: 0;
    font-weight: 600;
}

/* When text is visible, expand width only to hug content */
.profile-button:has(.profile-text.visible) {
    width: auto;
    height: 36px;
    padding: 0 12px;
    border-radius: var(--radius-full);
    gap: 6px;
}

.profile-button:hover {
    background: linear-gradient(180deg, #3b82f6 0%, var(--primary-blue) 100%);
    color: var(--white);
    border-color: var(--primary-blue);
    box-shadow: 
        0 4px 8px -2px rgba(37, 99, 235, 0.4),
        0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

.profile-icon {
    width: 20px;
    height: 20px;
    color: var(--gray-text);
    display: block;
    stroke: currentColor;
}

.profile-icon.hidden {
    display: none;
}

.profile-button:hover .profile-icon {
    color: var(--white);
}

.profile-text {
    color: var(--gray-text);
    font-size: 0.75rem;
    display: none;
    white-space: nowrap;
    font-weight: 600;
}

.profile-text.visible {
    display: inline-block;
}

.profile-button:hover .profile-text {
    color: var(--white);
}

.header-buttons {
    display: flex !important;
    flex-direction: row-reverse !important;
    flex-wrap: nowrap !important;
    gap: 12px;
    align-items: center;
}

.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: linear-gradient(180deg, #f3f4f6 0%, var(--light-bg) 100%);
    box-shadow: 
        0 8px 16px -4px rgba(0, 0, 0, 0.06) inset,
        0 2px 4px -1px rgba(0, 0, 0, 0.04) inset;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s ease,
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 1000px;
}

.chat-container.collapsed {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0;
}

.chat-container.collapsed .chat-messages,
.chat-container.collapsed .chat-input-form,
.chat-container.collapsed .quick-categories {
    display: none;
}

.help-explainer {
    display: none;
    padding: 20px;
    background: linear-gradient(180deg, #f3f4f6 0%, var(--light-bg) 100%);
    flex: 1;
    overflow-y: auto;
}

.help-explainer.visible {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

.explainer-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 250, 251, 0.9) 100%);
    border: 1px solid rgba(229, 231, 235, 0.6);
    border-radius: var(--radius-lg);
    border-bottom-left-radius: 4px;
    padding: 24px;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset,
        0 1px 0 rgba(255, 255, 255, 0.8) inset;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.explainer-card h3 {
    color: var(--gray-text);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.explainer-card p {
    color: var(--gray-text);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 12px;
    font-family: 'Geist Mono', monospace;
}

.explainer-card p:last-child {
    margin-bottom: 0;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scroll-behavior: smooth;
}

.message {
    max-width: 85%;
    animation: messageIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes messageIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.92);
        filter: blur(4px);
    }
    60% {
        transform: translateY(-4px) scale(1.02);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}


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

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

.message-content {
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    line-height: 1.6;
    word-wrap: break-word;
    font-size: 0.8125rem;
    font-family: 'Geist Mono', monospace;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.message.user .message-content {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    border-bottom-right-radius: 4px;
    box-shadow: 
        0 4px 15px rgba(37, 99, 235, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 1px 0 rgba(255, 255, 255, 0.2) inset;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.message.assistant .message-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 250, 251, 0.9) 100%);
    color: var(--gray-text);
    border: 1px solid rgba(229, 231, 235, 0.6);
    border-bottom-left-radius: 4px;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset,
        0 1px 0 rgba(255, 255, 255, 0.8) inset;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.message.escalated .message-content {
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.95) 0%, rgba(254, 243, 199, 0.8) 100%);
    color: #92400e;
    border: none;
    border-left: 4px solid var(--warning-orange);
    border-radius: 0 var(--radius) var(--radius) 0;
    box-shadow: 
        0 4px 15px rgba(245, 158, 11, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.3) inset;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.message-time {
    font-size: 0.75rem;
    color: var(--gray-light);
    margin-top: 4px;
    padding: 0 4px;
}

.message.user .message-time {
    text-align: right;
}

.chat-input-form {
    display: flex;
    padding: 16px;
    gap: 12px;
    background: linear-gradient(180deg, #fafbfc 0%, var(--white) 100%);
    border-top: 1px solid var(--border-color);
    align-items: center;
    box-shadow: 
        0 -4px 12px -2px rgba(0, 0, 0, 0.04),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

#messageInput {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-family: 'Geist Mono', monospace;
    outline: none;
    transition: all var(--transition);
    background: linear-gradient(180deg, #f5f6f7 0%, var(--light-bg) 100%);
    min-height: 44px;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.04) inset,
        0 1px 2px rgba(0, 0, 0, 0.06) inset,
        0 -1px 0 rgba(255, 255, 255, 0.8);
}

#messageInput:focus {
    border-color: var(--primary-blue);
    background: var(--white);
    box-shadow: 
        0 0 0 3px rgba(37, 99, 235, 0.12),
        0 1px 2px rgba(0, 0, 0, 0.04) inset,
        0 -1px 0 rgba(255, 255, 255, 0.9);
}

#messageInput::placeholder {
    color: var(--gray-light);
}

#sendButton {
    padding: 12px 24px;
    background: linear-gradient(180deg, #3b82f6 0%, var(--primary-blue) 50%, var(--secondary-blue) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-family: 'Geist Mono', monospace;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 
        0 4px 12px -2px rgba(37, 99, 235, 0.5),
        0 2px 4px -1px rgba(37, 99, 235, 0.3),
        0 1px 0 rgba(255, 255, 255, 0.25) inset,
        0 -1px 0 rgba(0, 0, 0, 0.15) inset;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

#sendButton:hover {
    background: linear-gradient(180deg, #4f8ff7 0%, #3b82f6 50%, var(--primary-blue) 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 20px -4px rgba(37, 99, 235, 0.6),
        0 4px 8px -2px rgba(37, 99, 235, 0.4),
        0 1px 0 rgba(255, 255, 255, 0.3) inset,
        0 -1px 0 rgba(0, 0, 0, 0.1) inset;
}

#sendButton:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 6px -1px rgba(37, 99, 235, 0.4),
        0 1px 2px rgba(37, 99, 235, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.1) inset,
        0 -1px 0 rgba(255, 255, 255, 0.2) inset;
}

#sendButton:disabled {
    background: linear-gradient(180deg, #c4c9d0 0%, var(--gray-light) 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.1),
        0 1px 0 rgba(255, 255, 255, 0.1) inset;
    text-shadow: none;
}

.typing-indicator {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    align-items: center;
}

.typing-indicator span {
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    border-radius: 50%;
    animation: liquidTyping 1.4s infinite ease-in-out;
    box-shadow: 
        0 2px 8px rgba(37, 99, 235, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.typing-indicator span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes liquidTyping {
    0%, 80%, 100% {
        transform: scale(0.6) translateY(0);
        opacity: 0.4;
        box-shadow: 
            0 1px 4px rgba(37, 99, 235, 0.2),
            0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    }
    40% {
        transform: scale(1.1) translateY(-4px);
        opacity: 1;
        box-shadow: 
            0 4px 12px rgba(37, 99, 235, 0.5),
            0 0 0 1px rgba(255, 255, 255, 0.3) inset;
    }
}

.hidden {
    display: none !important;
}

.quick-categories {
    display: flex;
    gap: 6px;
    padding: 10px 16px;
    background: var(--white);
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    justify-content: center;
}

.category-dropdown {
    position: relative;
}

.category-btn {
    padding: 8px 12px;
    background: linear-gradient(180deg, var(--white) 0%, var(--light-bg) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: var(--gray-text);
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 36px;
    font-weight: 500;
    box-shadow: 
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.category-btn:hover {
    background: linear-gradient(180deg, var(--light-bg) 0%, #eef0f2 100%);
    border-color: var(--gray-light);
    box-shadow: 
        0 3px 6px -2px rgba(0, 0, 0, 0.1),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.category-btn::after {
    content: '▾';
    font-size: 0.75rem;
    transition: transform var(--transition);
}

.category-dropdown.open .category-btn::after {
    transform: rotate(180deg);
}

.category-dropdown.open .category-btn {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.dropdown-menu {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    padding: 6px;
    display: none;
    z-index: 100;
    margin-bottom: 8px;
}

.category-dropdown.open .dropdown-menu {
    display: block;
    animation: dropdownIn 0.2s ease;
}

@keyframes dropdownIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 14px;
    background: none;
    border: none;
    text-align: left;
    font-size: 0.875rem;
    color: var(--gray-text);
    cursor: pointer;
    transition: all var(--transition);
    border-radius: var(--radius);
    min-height: 44px;
}

.dropdown-item:hover {
    background: var(--light-bg);
    color: var(--primary-blue);
}

.warning-icon {
    color: var(--warning-orange);
}

.danger-icon {
    color: var(--danger-red);
}

.success-icon {
    color: var(--success-green);
}

@media (max-width: 480px) {
    body {
        padding: 0;
        align-items: stretch;
    }
    
    .container {
        height: 100vh;
        max-height: none;
        border-radius: 0;
    }
    
    header {
        padding: 12px 16px;
    }
    
    header h1 {
        font-size: 2.25rem;
    }
    
    .chat-messages {
        padding: 16px;
    }
    
    .message {
        max-width: 90%;
    }
    
    .message-content {
        font-size: 0.775rem;
        padding: 10px 14px;
    }
    
    .chat-input-form {
        padding: 12px;
        gap: 8px;
    }
    
    #messageInput {
        padding: 10px 14px;
        font-size: 0.875rem;
    }
    
    #sendButton {
        padding: 10px 18px;
    }
    
    .quick-categories {
        padding: 10px 12px;
        gap: 6px;
    }
    
    .category-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        min-height: 40px;
    }
    
    .dropdown-menu {
        min-width: 180px;
    }
    
    .dropdown-item {
        padding: 10px 12px;
        font-size: 0.85rem;
        min-height: 40px;
    }
}

@media (max-width: 320px) {
    header h1 {
        font-size: 1.875rem;
    }
    
    .category-btn {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
}

.confirmation-buttons {
    padding: 16px !important;
}

.confirm-btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.confirm-yes-btn,
.confirm-no-btn {
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 0.8125rem;
    font-family: 'Geist Mono', monospace;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
}

.confirm-yes-btn {
    background: linear-gradient(180deg, #3b82f6 0%, var(--primary-blue) 100%);
    color: var(--white);
    box-shadow: 0 2px 8px -2px rgba(37, 99, 235, 0.4);
}

.confirm-yes-btn:hover {
    background: linear-gradient(180deg, #4f8ff7 0%, #3b82f6 100%);
    transform: translateY(-1px);
}

.confirm-no-btn {
    background: var(--white);
    color: var(--gray-text);
    border: 1px solid var(--border-color);
}

.confirm-no-btn:hover {
    background: var(--light-bg);
}

.ticket-form-bubble {
    max-width: 100% !important;
    width: 100%;
}

.ticket-form-content {
    padding: 20px !important;
}

.ticket-form-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-text);
    margin: 0 0 8px 0;
}

.ticket-form-intro {
    font-size: 0.8125rem;
    color: var(--gray-light);
    margin: 0 0 20px 0;
}

.inline-ticket-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.inline-form-section h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin: 0 0 12px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-color);
}

.inline-form-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.inline-form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.inline-form-group label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-text);
}

.inline-form-group input,
.inline-form-group select,
.inline-form-group textarea {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.8125rem;
    font-family: 'Geist Mono', monospace;
    background: var(--white);
    transition: all var(--transition);
    outline: none;
}

.inline-form-group input:focus,
.inline-form-group select:focus,
.inline-form-group textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.inline-form-group input.has-error {
    border-color: var(--danger-red);
    background: #fef2f2;
}

.inline-form-group input::placeholder,
.inline-form-group textarea::placeholder {
    color: var(--gray-light);
}

.inline-error {
    display: none;
    font-size: 0.6875rem;
    color: var(--danger-red);
}

.inline-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
}

.inline-checkbox,
.inline-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.8125rem;
    color: var(--gray-text);
}

.inline-checkbox input,
.inline-radio input {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary-blue);
}

.inline-urgent {
    color: var(--warning-orange);
    font-weight: 500;
}

.inline-radio-group {
    display: flex;
    gap: 20px;
    margin-top: 6px;
}

.inline-summary-box {
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: var(--radius);
    padding: 12px;
    margin-bottom: 12px;
}

.inline-summary-box p {
    font-size: 0.8125rem;
    color: var(--gray-text);
    line-height: 1.5;
    margin: 0;
}

.inline-form-actions {
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.inline-submit-btn {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(180deg, #3b82f6 0%, var(--primary-blue) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-family: 'Geist Mono', monospace;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 2px 8px -2px rgba(37, 99, 235, 0.4);
}

.inline-submit-btn:hover {
    background: linear-gradient(180deg, #4f8ff7 0%, #3b82f6 100%);
    transform: translateY(-1px);
}

.inline-submit-btn:disabled {
    background: var(--gray-light);
    cursor: not-allowed;
    transform: none;
}

.ticket-success-content {
    text-align: center;
    padding: 24px !important;
}

.inline-success-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 16px;
}

.ticket-success-content h3 {
    font-size: 1rem;
    color: var(--gray-text);
    margin: 0 0 8px 0;
}

.ticket-success-content p {
    font-size: 0.8125rem;
    color: var(--gray-light);
    margin: 0 0 4px 0;
}

.inline-ticket-id {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-blue);
    font-family: 'Geist Mono', monospace;
    letter-spacing: 0.1em;
    margin: 12px 0 !important;
}

.inline-success-msg {
    color: var(--success-green) !important;
    font-weight: 500;
}

@media (max-width: 480px) {
    .confirm-btn-group {
        flex-direction: column;
    }
    
    .confirm-yes-btn,
    .confirm-no-btn {
        width: 100%;
        text-align: center;
    }
}

.history-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--gray-light);
    padding: 4px 12px;
    margin-bottom: 4px;
}

.history-indicator.active {
    color: var(--success-green);
}

.history-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gray-light);
}

.history-dot.active {
    background: var(--success-green);
    box-shadow: 0 0 4px var(--success-green);
}
