.signin-page-wrapper {
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #0f172a;
    /* Dark background */
    color: #e2e8f0;
}

.signin-container {
    background-color: #1e293b;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.signin-logo {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.signin-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #f8fafc;
}

.signin-subtitle {
    font-size: 0.95rem;
    color: #94a3b8;
    margin-bottom: 30px;
}

.auth-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background-color: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background-color: #2563eb;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid #475569;
    color: #e2e8f0;
}

.btn-outline:hover {
    background-color: #334155;
    border-color: #94a3b8;
}

.divider {
    font-size: 0.8rem;
    color: #64748b;
    margin: 5px 0;
}

.signin-footer {
    position: absolute;
    bottom: 20px;
    font-size: 0.8rem;
    color: #64748b;
}

.beta-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.alert-success {
    background-color: rgba(34, 197, 94, 0.15);
    border: 1px solid #22c55e;
    color: #22c55e;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
}.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.open {
    opacity: 1;
    visibility: visible;
}

.sidebar-menu {
    position: fixed;
    top: 0;
    left: -300px;
    /* Hidden by default */
    width: 280px;
    height: 100%;
    background-color: var(--color-bg-primary);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    z-index: 2001;
    transition: left 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.sidebar-menu.open {
    left: 0;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.sidebar-content {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
}

/* Dark Mode Toggle Section */
.menu-section {
    background-color: var(--color-bg-secondary);
    border-radius: 12px;
    margin-bottom: 24px;
    overflow: hidden;
}

.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    color: var(--color-text-primary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid var(--color-border);
}

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

.menu-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.menu-icon {
    margin-right: 12px;
    font-size: 1.1rem;
}

.menu-label {
    flex: 1;
    font-weight: 500;
}

/* Toggle Switch - simplified div-based approach */
.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    cursor: pointer;
    background-color: #ccc;
    border-radius: 34px;
    transition: background-color 0.3s;
}

.toggle-switch:hover {
    opacity: 0.9;
}

.slider-custom {
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    top: 3px;
    background-color: white;
    transition: transform 0.3s;
    border-radius: 50%;
    pointer-events: none;
}

.slider-custom.active {
    transform: translateX(20px);
}

.toggle-switch:has(.slider-custom.active) {
    background-color: var(--color-accent);
}

.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar-footer {
    padding: 16px;
    text-align: center;
    font-size: 0.7rem;
    color: var(--color-text-secondary);
    border-top: 1px solid var(--color-border);
}

/* Profile Section */
.profile-section {
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: var(--color-bg-secondary);
    border-radius: 12px;
    margin-bottom: 24px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: border-color 0.2s;
}

.profile-section:hover {
    border-color: var(--color-border);
}

.profile-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #334155;
    /* Dark grey placeholder */
    margin-right: 16px;
    position: relative;
}

.profile-avatar-placeholder::after {
    content: "👤";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    opacity: 0.5;
}

.profile-info {
    flex: 1;
}

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

.profile-role {
    color: var(--color-text-secondary);
    font-size: 0.8rem;
}

.profile-arrow {
    color: var(--color-text-secondary);
}

/* Sign Out Specifics */
.sign-out-item {
    margin-top: 8px;
    color: #f87171 !important;
    /* Soft Red */
}

.sign-out-item:hover {
    background-color: rgba(239, 68, 68, 0.1) !important;
}.safety-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.safety-modal-content {
    background-color: #1e293b;
    /* Dark Slate */
    border: 2px solid #ef4444;
    /* Red Border */
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
    animation: bounceIn 0.5s ease;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    60% {
        transform: scale(1.05);
        opacity: 1;
    }

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

.safety-header {
    background-color: #ef4444;
    padding: 15px;
    border-radius: 10px 10px 0 0;
    text-align: center;
}

.safety-header h2 {
    margin: 0;
    color: white;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.safety-body {
    padding: 25px;
    color: #f8fafc;
}

.safety-text {
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 1.05rem;
}

.safety-text.highlight {
    color: #fca5a5;
    /* Light Red */
    font-weight: 600;
    text-align: center;
    border: 1px dashed #ef4444;
    padding: 10px;
    background-color: rgba(239, 68, 68, 0.1);
    border-radius: 6px;
}

.safety-divider {
    border: 0;
    height: 1px;
    background-color: #334155;
    margin: 20px 0;
}

.safety-confirmation {
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.95rem;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
}

.accept-btn {
    width: 100%;
    padding: 12px;
    background-color: #ef4444;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}

.accept-btn:hover {
    background-color: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.accept-btn.disabled {
    background-color: #475569;
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
    box-shadow: none;
}

.safety-footer {
    padding: 10px;
    text-align: center;
    font-size: 0.75rem;
    color: #94a3b8;
    background-color: #0f172a;
    border-radius: 0 0 10px 10px;
}.app-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--color-bg-primary);
    overflow: hidden;
    /* Prevent body scroll, handle inside components */
}

.app-header {
    height: 60px;
    display: flex;
    justify-content: space-between;
    /* Push items to edges */
    align-items: center;
    padding: 0 16px;
    background-color: var(--color-bg-secondary);
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
}

.hamburger-btn {
    background: none;
    font-size: 1.5rem;
    color: var(--color-text-primary);
    cursor: pointer;
    margin-right: 16px;
    display: flex;
    align-items: center;
}

.ai-toggle-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    transition: transform 0.2s;
}

.ai-toggle-btn:hover {
    transform: scale(1.1);
}

.header-title-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.header-title-link:hover {
    opacity: 0.8;
}

.header-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-accent);
    margin: 0;
}

.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-y: auto;
}

/* Specific layout for Chat/Home page to push input to bottom */
.chat-layout-main {
    overflow: hidden;
    /* Chat scroll handled internally if needed */
}

.app-footer {
    text-align: center;
    padding: 16px;
    color: #475569;
    font-size: 0.75rem;
    border-top: 1px solid var(--color-border);
    background-color: var(--color-bg-secondary);
    flex-shrink: 0;
}.markdown-chunks-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

/* Individual Chunk Container Card */
.chunk-card {
    position: relative;
    background-color: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 16px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.chunk-card:hover {
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    background-color: rgba(30, 41, 59, 0.6);
}

/* Active Speaking State */
.chunk-card.speaking-chunk {
    border-color: #22c55e !important;
    background-color: rgba(34, 197, 94, 0.08) !important;
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.25) !important;
    animation: chunkPulse 2s infinite ease-in-out;
}

@keyframes chunkPulse {
    0%, 100% {
        box-shadow: 0 0 12px rgba(34, 197, 94, 0.2);
    }
    50% {
        box-shadow: 0 0 22px rgba(34, 197, 94, 0.4);
    }
}

/* Chunk Action Bar (Copy & Read buttons) */
.chunk-action-bar {
    position: absolute;
    top: 8px;
    right: 10px;
    display: flex;
    gap: 6px;
    z-index: 10;
}

.chunk-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: var(--color-bg-tertiary, rgba(15, 23, 42, 0.8));
    border: 1px solid var(--color-border, rgba(255, 255, 255, 0.12));
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-secondary, #94a3b8);
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.chunk-action-btn:hover {
    color: #ffffff;
    background-color: var(--color-accent, #3b82f6);
    border-color: var(--color-accent, #3b82f6);
    transform: translateY(-1px);
}

/* Copied button state */
.chunk-action-btn.copy-btn.copied {
    background-color: #16a34a;
    border-color: #16a34a;
    color: #ffffff;
}

/* Speaking button state */
.chunk-action-btn.speak-btn.speaking {
    background-color: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
    animation: btnPulse 1.2s infinite ease-in-out;
}

@keyframes btnPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Chunk Body Content */
.chunk-body {
    width: 100%;
    color: var(--color-text-primary, #f8fafc);
    font-size: 0.95rem;
    line-height: 1.6;
    padding-top: 4px;
}

.chunk-body p {
    margin: 0;
    padding: 0;
    word-break: break-word;
}

.chunk-body h1,
.chunk-body h2,
.chunk-body h3,
.chunk-body h4 {
    margin: 0;
    color: var(--color-accent, #3b82f6);
    font-weight: 600;
}

.chunk-body ul,
.chunk-body ol {
    margin: 0;
    padding-left: 20px;
}

.chunk-body li {
    margin-bottom: 4px;
}

.chunk-body li:last-child {
    margin-bottom: 0;
}

/* Code Chunks */
.code-chunk {
    background-color: #0f172a !important;
    border-color: rgba(51, 65, 85, 0.8) !important;
    padding: 0 !important;
    overflow: hidden;
}

.code-block-header {
    background-color: rgba(30, 41, 59, 0.8);
    padding: 6px 14px;
    border-bottom: 1px solid rgba(51, 65, 85, 0.6);
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.code-chunk pre {
    margin: 0;
    padding: 14px 16px;
    background: transparent;
    overflow-x: auto;
    font-family: 'Fira Code', Consolas, Monaco, monospace;
    font-size: 0.88rem;
    color: #e2e8f0;
}

.code-chunk code {
    background: transparent;
    padding: 0;
    border-radius: 0;
}

/* Tables */
.table-scroll-container {
    overflow-x: auto;
    width: 100%;
}

.table-chunk table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.table-chunk th,
.table-chunk td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid var(--color-border, rgba(255, 255, 255, 0.1));
}

.table-chunk th {
    background-color: rgba(15, 23, 42, 0.6);
    font-weight: 600;
}

/* Blockquotes */
.blockquote-chunk blockquote {
    margin: 0;
    padding: 8px 14px;
    border-left: 4px solid var(--color-accent, #3b82f6);
    background-color: rgba(59, 130, 246, 0.05);
    font-style: italic;
    color: #cbd5e1;
}
.home-chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    overflow: hidden;
    /* Prevent double scrollbars */
}

.clear-chat-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    background-color: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
    opacity: 0.7;
}

.clear-chat-btn:hover {
    opacity: 1;
    background-color: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

.chat-messages-area {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 100px;
    /* Ensure space for fixed input bar */
}

/* Scrollbar styling */
.chat-messages-area::-webkit-scrollbar {
    width: 6px;
}

.chat-messages-area::-webkit-scrollbar-thumb {
    background-color: var(--color-border);
    border-radius: 3px;
}

.empty-home-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: var(--color-text-secondary);
    opacity: 0.8;
}

.empty-home-state h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--color-text-primary);
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.empty-home-state .suggestion {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.empty-home-state .suggestion:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.chat-input-wrapper {
    background-color: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    position: sticky;
    bottom: 0;
    z-index: 10;
    border-radius: 16px 16px 0 0;
}

.file-preview-bar {
    display: flex;
    gap: 8px;
    padding-bottom: 8px;
    overflow-x: auto;
}

.file-preview-thumb {
    position: relative;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.file-preview-thumb img {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--color-border);
}

.file-preview-thumb .remove-preview {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    transition: all 0.15s ease;
}

.file-preview-thumb .remove-preview:hover {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

.chat-input-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--color-bg-primary);
    padding: 10px 16px;
    border-radius: 28px;
    border: 1px solid var(--color-border);
    transition: border-color 0.2s;
}

.chat-input-bar:focus-within {
    border-color: var(--color-accent);
}

.chat-input-bar textarea {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--color-text-primary);
    font-family: var(--font-family-input);
    font-size: 0.95rem;
    font-weight: 400;
    resize: none;
    max-height: 120px;
    outline: none;
    padding: 4px 0;
    line-height: 1.5;
}

.chat-input-bar textarea::placeholder {
    font-family: var(--font-family-input);
    font-weight: 400;
    color: var(--color-text-secondary);
    opacity: 0.7;
}

.attach-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    cursor: pointer;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.attach-btn:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
    transform: scale(1.05);
}

.mic-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-secondary);
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 50%;
    flex-shrink: 0;
}

.mic-btn:hover {
    color: var(--color-accent);
    background-color: rgba(59, 130, 246, 0.1);
}

/* Upload Menu Container */
.upload-menu-container {
    position: relative;
}

.upload-menu {
    position: absolute;
    bottom: 50px;
    left: 0;
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 6px;
    min-width: 200px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 100;
    animation: slideUp 0.2s ease;
    overflow: hidden;
}

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

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

.upload-menu button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 16px;
    background: none;
    border: none;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-primary);
    font-family: var(--font-family-input);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.upload-menu button:last-child {
    border-bottom: none;
}

.upload-menu button:first-child {
    border-radius: 10px 10px 0 0;
}

.upload-menu button:last-child {
    border-radius: 0 0 10px 10px;
}

.upload-menu button:only-child {
    border-radius: 10px;
}

.upload-menu button:hover {
    background-color: var(--color-bg-primary);
}

.upload-menu button svg {
    color: var(--color-text-secondary);
    flex-shrink: 0;
}

.upload-menu-label {
    font-size: 0.95rem;
}

.send-btn-home {
    background-color: var(--color-accent);
    color: white;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.send-btn-home:hover:not(:disabled) {
    background-color: #2563eb;
    transform: scale(1.05);
}

.send-btn-home:disabled {
    background-color: var(--color-bg-tertiary);
    color: var(--color-text-muted);
    cursor: default;
}

/* ... existing styles ... */

/* Markdown Content Styling */
.model-bubble {
    width: 100%;
    /* Use full width for tables */
    max-width: 100%;
}

.chat-messages-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 120px;
    /* Ensure last message clears the input bar */
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.user-bubble {
    /* Keep user bubbles compact */
    align-self: flex-end;
    background-color: var(--color-bg-tertiary);
    /* Better distinct color */
}

/* Tables */
.table-container {
    position: relative;
    overflow-x: auto;
    margin: 15px 0;
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

/* Content action buttons (Copy / TTS) */
.content-action-btns {
    position: absolute;
    top: 4px;
    right: 4px;
    display: flex;
    gap: 6px;
    z-index: 5;
}

.copy-table-btn,
.copy-list-btn,
.speak-content-btn {
    background-color: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 6px;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s;
}

.copy-table-btn:hover,
.copy-list-btn:hover,
.speak-content-btn:hover {
    opacity: 1;
    background-color: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
}

/* Lists with action buttons */
.list-container {
    position: relative;
    margin: 10px 0;
    padding-top: 8px;
    /* space for buttons */
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}

th,
td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

th {
    background-color: var(--color-bg-secondary);
    font-weight: 600;
}

tr:last-child td {
    border-bottom: none;
}

/* Headers */
.model-bubble h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--color-accent);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 5px;
}

/* Lists */
.model-bubble ul,
.model-bubble ol {
    padding-left: 20px;
    margin: 10px 0;
}

.model-bubble li {
    margin-bottom: 5px;
}

/* Safety Warnings (Bold Caps) */
strong {
    font-weight: 700;
    color: #ef4444;
    /* Red for warnings */
}

/* Code Blocks */
pre {
    background-color: #0f172a;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 15px 0;
    color: #e2e8f0;
}

code {
    font-family: monospace;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2px 4px;
    border-radius: 4px;
}

pre code {
    background-color: transparent;
    padding: 0;
}

/* Image thumbnails in chat messages */
.message-files {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.message-image-thumb {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 200px;
}

.message-image-thumb img {
    width: 100%;
    max-width: 200px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.message-image-thumb img:hover {
    transform: scale(1.02);
}

.image-filename {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Text-to-Speech button on AI bubbles */
.model-bubble {
    position: relative;
}

.tts-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background-color: transparent;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.3;
    z-index: 2;
}

.tts-btn:hover {
    opacity: 0.8;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-text-primary);
}

.tts-btn.speaking {
    opacity: 1;
    background-color: transparent;
    color: var(--color-accent);
    animation: ttsPulse 1.5s ease-in-out infinite;
}

@keyframes ttsPulse {

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

    50% {
        transform: scale(1.1);
    }
}

/* Scroll navigation arrows */
.scroll-arrow {
    position: absolute;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background-color: var(--color-bg-secondary);
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 15;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInArrow 0.2s ease;
}

.scroll-arrow:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
    transform: scale(1.08);
}

.scroll-arrow-top {
    top: 55px;
}

.scroll-arrow-bottom {
    bottom: 100px;
}

@keyframes fadeInArrow {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}.about-container {
    padding: 24px;
    max-width: 600px;
    margin: 0 auto;
    color: var(--color-text-primary);
}

.about-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 32px;
    transition: transform 0.2s ease;
}

.about-header.clickable-header {
    cursor: pointer;
}

.about-header.clickable-header:active {
    transform: scale(0.98);
}

.about-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
    transition: transform 0.2s ease;
}

.home-nav-button {
    display: flex;
    align-items: center;
    background-color: var(--color-bg-secondary);
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    gap: 12px;
}

.nav-icon-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
}

.nav-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-accent);
}

.about-title-section {
    text-align: center;
    margin-bottom: 32px;
}

/* Make sure the clickable effect applies to the new structure */
.about-header.clickable-header {
    cursor: pointer;
}

.about-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.about-version {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

/* Description Card */
.info-card {
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-left: 4px solid #e74c3c;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.info-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-bg-primary);
    /* Fallback? No, text primary */
    color: var(--color-text-primary);
    margin-bottom: 16px;
}

.info-text:last-child {
    margin-bottom: 0;
}

/* Key Features */
.features-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.features-list {
    list-style: none;
    padding: 0;
}

.feature-item {
    font-size: 0.95rem;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
}

.feature-bullet {
    margin-right: 8px;
    color: var(--color-text-secondary);
}

/* Developer Footer */
.developer-card {
    background-color: #1e293b;
    /* Fixed dark for aesthetic or use secondary? */
    background-color: var(--color-bg-secondary);
    /* Use variable for theme support */
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    margin-top: auto;
    border: 1px solid var(--color-border);
}

.developer-label {
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.developer-name {
    color: var(--color-accent);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.copyright-text {
    color: var(--color-text-secondary);
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Override Main Layout Back Button for this page if needed */
.back-nav {
    display: flex;
    align-items: center;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 20px;
    cursor: pointer;
}.profile-page-wrapper {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    background-color: var(--bg-primary);
    min-height: calc(100vh - 60px);
}

.profile-card {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.profile-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-primary);
    font-size: 2rem;
}

.profile-header {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

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

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

.form-group label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.input-field {
    padding: 12px 16px;
    border-radius: 8px;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.2);
}

.input-field.disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background-color: var(--bg-tertiary);
}

.textarea-field {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    filter: brightness(1.1);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: wait;
}.projects-container {
    padding: 20px;
    height: 100%;
    overflow-y: auto;
    background-color: var(--color-bg-primary);
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--color-border);
}

.projects-header h1 {
    font-size: 1.5rem;
    color: var(--color-text-primary);
    margin: 0;
}

.add-project-btn {
    background-color: transparent;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
}

.add-project-btn:hover {
    background-color: var(--color-accent);
    color: white;
}

.empty-projects-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: var(--color-text-secondary);
    text-align: center;
    border: 2px dashed var(--color-border);
    border-radius: 12px;
}

.create-first-btn {
    margin-top: 20px;
    background-color: var(--color-primary);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.project-card {
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--color-accent);
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.project-card-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--color-text-primary);
    line-height: 1.4;
}

.project-actions {
    display: flex;
    gap: 8px;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    padding: 4px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.icon-btn:hover {
    opacity: 1;
}

.delete-btn:hover {
    color: #ef4444;
}

.share-btn:hover {
    color: var(--color-accent);
}

.project-snippet {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 15px;
    line-height: 1.5;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin-top: auto;
}

.status-badge {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Form Styles */
.project-form {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group label {
    font-weight: 600;
    color: var(--color-text-primary);
    font-size: 0.95rem;
}

.required {
    color: #ef4444;
}

.form-input,
.form-textarea {
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 10px 15px;
    color: var(--color-text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form-textarea {
    resize: vertical;
}

.form-section-banner {
    background-color: var(--color-bg-tertiary);
    padding: 10px 15px;
    border-radius: 8px;
    margin-top: 10px;
    border-left: 4px solid var(--color-accent);
}

.form-section-banner h2 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--color-text-primary);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.cancel-btn {
    background-color: transparent;
    color: #ef4444;
    border: 1px solid #ef4444;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

.cancel-btn:hover {
    background-color: rgba(239, 68, 68, 0.1);
}

.save-btn {
    background-color: var(--color-success);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

.save-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}.privacy-policy-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.privacy-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 8px;
    text-align: center;
}

.privacy-updated {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.privacy-section {
    background-color: var(--color-bg-secondary);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.privacy-section h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}

.section-intro {
    color: var(--color-text-secondary);
    margin-bottom: 16px;
    font-style: italic;
}

.privacy-item {
    margin-bottom: 20px;
    padding: 16px;
    background-color: var(--color-bg-primary);
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
}

.privacy-item:last-child {
    margin-bottom: 0;
}

.privacy-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 8px;
}

.privacy-item p {
    color: var(--color-text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.privacy-item strong {
    color: var(--color-accent);
}

.privacy-item.highlight-green {
    border-left-color: #22c55e;
    background-color: rgba(34, 197, 94, 0.1);
}

.privacy-item.highlight-green h3 {
    color: #22c55e;
}

.privacy-footer {
    text-align: center;
    padding: 24px;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.privacy-footer p {
    margin: 0;
}.tos-page {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 60px;
}

.tos-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tos-section {
    display: flex;
    gap: 15px;
    background-color: var(--color-bg-secondary);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--color-border);
    border-left: 4px solid #e74c3c;
}

.section-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--color-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.section-content {
    flex: 1;
}

.section-content h2 {
    margin: 0 0 12px 0;
    font-size: 1.15rem;
    color: var(--color-text);
}

.section-content p {
    margin: 0 0 12px 0;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Critical section styling */
.critical-section {
    border-left: 4px solid #e74c3c;
}

.critical-alert {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: rgba(231, 76, 60, 0.1);
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.alert-icon {
    font-size: 1.3rem;
}

.alert-content {
    color: var(--color-text);
    font-size: 0.95rem;
}

/* Safety section - now uses red for consistency */
.safety-section {
    border-left: 4px solid #e74c3c;
}

.safety-box {
    background: rgba(231, 76, 60, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.safety-box p {
    margin: 0;
    color: var(--color-text);
}

/* Warning section */
.warning-section {
    border-left: 4px solid #e74c3c;
    background: linear-gradient(to right, rgba(231, 76, 60, 0.05), var(--color-bg-secondary));
}

/* Lists */
.tos-list {
    margin: 0 0 12px 0;
    padding-left: 20px;
    color: var(--color-text-secondary);
}

.tos-list li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.feature-list {
    list-style: none;
    padding-left: 0;
}

.feature-list li {
    padding: 6px 0;
}

.warning-list li {
    color: #e74c3c;
}

.verification-notice {
    background: rgba(52, 152, 219, 0.1);
    padding: 12px 15px;
    border-radius: 8px;
    color: var(--color-text);
    font-size: 0.95rem;
}

.liability-statement {
    font-style: italic;
    color: var(--color-text) !important;
}

/* Footer */
.tos-footer {
    margin-top: 30px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.back-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--color-accent);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}



/* Mobile responsive */
@media (max-width: 600px) {
    .tos-page {
        padding: 15px;
    }

    .page-banner {
        padding: 20px 15px;
    }

    .page-banner h1 {
        font-size: 1.5rem;
    }

    .tos-section {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }

    .section-number {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .section-content h2 {
        font-size: 1.05rem;
    }

    .critical-alert {
        flex-direction: column;
        gap: 8px;
    }
}.support-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.support-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.support-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 8px;
}

.support-subtitle {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.support-card {
    background: linear-gradient(135deg, var(--color-bg-secondary) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    border: 1px solid var(--color-border);
    border-left: 4px solid #e74c3c;
}

.support-card-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.support-card h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 16px;
}

.support-card p {
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.support-card strong {
    color: var(--color-accent);
}

.support-btn {
    background-color: var(--color-accent);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.support-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.support-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background-color: var(--color-bg-secondary);
    padding: 16px 20px;
    border-radius: 12px;
    text-align: left;
    border: 1px solid var(--color-border);
    border-left: 4px solid #e74c3c;
}

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

.info-item h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 4px;
}

.info-item p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin: 0;
}

.support-footer {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    font-style: italic;
}.feedback-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 30px 20px;
}

.feedback-header {
    text-align: center;
    margin-bottom: 40px;
}

.feedback-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 8px;
}

.feedback-subtitle {
    color: var(--color-text-secondary);
    font-size: 1rem;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Form Section */
.form-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: var(--color-bg-secondary);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    border-left: 4px solid #e74c3c;
}

.form-label {
    font-weight: 600;
    color: var(--color-text-primary);
    font-size: 0.95rem;
}

.optional-text {
    color: var(--color-text-secondary);
    font-weight: 400;
    font-size: 0.85rem;
}

.required-text {
    color: #ef4444;
    font-weight: 600;
}

/* Star Rating */
.star-rating {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 10px 0;
}

.star-button {
    background: none;
    border: none;
    font-size: 3rem;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

.star-button:hover {
    transform: scale(1.15);
}

.star-button.active {
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.rating-text {
    text-align: center;
    color: var(--color-accent);
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 8px;
}

/* Textarea */
.feedback-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background-color: var(--color-bg-secondary);
    color: var(--color-text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    transition: border-color 0.2s ease;
}

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

/* Contact Form Section */
.contact-form-section {
    background-color: var(--color-bg-tertiary);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    border-left: 4px solid #e74c3c;
    animation: slideDown 0.3s ease;
}

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

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

.contact-form-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 6px;
}

.contact-form-subtitle {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field.full-width {
    grid-column: 1 / -1;
}

.form-input {
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form-input.error {
    border-color: #ef4444;
}

.error-text {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 4px;
}

/* Submit Button */
.submit-button {
    background: linear-gradient(135deg, var(--color-accent), #0ea5e9);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

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

/* Privacy Note */
.privacy-note {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-top: 10px;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 60px 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-accent), #0ea5e9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 3rem;
    color: white;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

.success-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 12px;
}

.success-text {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .star-button {
        font-size: 2.5rem;
    }

    .feedback-title {
        font-size: 1.5rem;
    }
}:root {
  --color-bg-primary: #0f1623;
  --color-bg-secondary: #1e293b;
  --color-text-primary: #f8fafc;
  --color-text-secondary: #94a3b8;
  --color-accent: #3b82f6;
  --color-success: #10b981;
  --color-border: #334155;
  --font-family: 'Inter', system-ui, Avenir, Helvetica, Arial, sans-serif;
  --font-family-input: 'Public Sans', 'Inter', system-ui, sans-serif;
}

[data-theme='light'] {
  --color-bg-primary: #f8fafc;
  /* Light/White BG */
  --color-bg-secondary: #ffffff;
  /* White Card BG */
  --color-text-primary: #1e293b;
  /* Dark Blue/Slate Text */
  --color-text-secondary: #64748b;
  /* Slate Gray Text */
  --color-accent: #3b82f6;
  /* Keep Blue Accent */
  --color-success: #10b981;
  /* Keep Green */
  --color-border: #cbd5e1;
  /* Lighter Border */
}

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

body {
  font-family: var(--font-family);
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Global Information Page Banner */
.page-banner {
  text-align: center;
  margin-bottom: 30px;
  padding: 30px 20px;
  background: linear-gradient(135deg, #2563eb, #dc2626);
  border-radius: 16px;
  color: white;
}

.page-banner h1 {
  margin: 0 0 8px 0;
  font-size: 1.8rem;
}

.page-subtitle {
  margin: 0;
  opacity: 0.9;
  font-size: 1rem;
}