/* Light theme overrides */

/* Light Theme */
[data-theme="light"] {
    --primary-purple: #7c3aed;
    --secondary-purple: #8b5cf6;
    --dark-bg: #f8fafc;
    --darker-bg: #f1f5f9;
    --light-text: #1e293b;
    --muted-text: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(148, 163, 184, 0.3);
}

/* Light theme specific adjustments */
[data-theme="light"] .user-message {
    background: rgba(124, 104, 248, 0.18);
    color: #1e293b;
    border-color: rgba(124, 104, 248, 0.35);
}

[data-theme="light"] .ai-message {
    background: rgba(255, 255, 255, 0.95);
    color: #1e293b;
    border-color: rgba(148, 163, 184, 0.35);
}

[data-theme="light"] .pill {
    background: linear-gradient(145deg, #e2e8f0, #cbd5e1);
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: #475569;
}

[data-theme="light"] .pill:hover {
    background: linear-gradient(145deg, #cbd5e1, #94a3b8);
    border-color: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .suggested-prompts {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .suggested-prompts li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    color: #374151;
}

[data-theme="light"] .suggested-prompts li:hover {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .top-bar {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .mode-toggle-group {
    background: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .top-action-btn.ghost {
    border-color: rgba(15, 23, 42, 0.12);
    color: #1f2937;
}

[data-theme="light"] .top-action-btn.ghost:hover {
    background: rgba(15, 23, 42, 0.08);
    border-color: rgba(15, 23, 42, 0.18);
}

[data-theme="light"] .top-action-btn.is-active {
    background: rgba(124, 104, 248, 0.2);
    border-color: rgba(124, 104, 248, 0.45);
    color: #312e81;
}

[data-theme="light"] .top-action-btn.primary {
    box-shadow: 0 16px 32px -22px rgba(124, 58, 237, 0.4);
}

[data-theme="light"] .icon-btn {
    background: rgba(15, 23, 42, 0.08);
    border-color: rgba(15, 23, 42, 0.12);
    color: #1e293b;
}

[data-theme="light"] .icon-btn:hover {
    background: rgba(15, 23, 42, 0.14);
    border-color: rgba(15, 23, 42, 0.2);
}

[data-theme="light"] .icon-btn.is-active {
    background: rgba(124, 104, 248, 0.18);
    border-color: rgba(124, 104, 248, 0.45);
    color: #312e81;
}

[data-theme="light"] .logout-btn.small {
    background: rgba(15, 23, 42, 0.08);
    border-color: rgba(15, 23, 42, 0.14);
    color: #1e293b;
}

[data-theme="light"] .logout-btn.small:hover {
    background: rgba(15, 23, 42, 0.12);
    border-color: rgba(15, 23, 42, 0.2);
}

/* Light theme composer row styling */
[data-theme="light"] .input-container {
    background: linear-gradient(140deg, rgba(248, 250, 252, 0.95), rgba(241, 245, 249, 0.9));
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 10px 40px -15px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .composer-model-pill {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.14) 0%, rgba(124, 58, 237, 0.04) 100%);
    border-color: rgba(124, 58, 237, 0.28);
    color: #312e81;
    box-shadow: 0 10px 24px -16px rgba(124, 58, 237, 0.35);
}

[data-theme="light"] .composer-model-pill:hover,
[data-theme="light"] .composer-model-pill:focus-visible {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.22) 0%, rgba(124, 58, 237, 0.08) 100%);
    border-color: rgba(124, 58, 237, 0.45);
    box-shadow: 0 16px 28px -16px rgba(124, 58, 237, 0.45);
}

[data-theme="light"] .composer-model-label {
    color: rgba(30, 41, 59, 0.55);
}

[data-theme="light"] .composer-model-name {
    color: #1e1b4b;
}

[data-theme="light"] .attachment-button {
    color: #64748b;
}

[data-theme="light"] .attachment-button:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #1e293b;
}

[data-theme="light"] .message-input.autosize {
    color: #1e293b;
}

[data-theme="light"] .message-input.autosize::placeholder {
    color: #94a3b8;
}


[data-theme="light"] ::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.05);
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
    border: 2px solid rgba(255, 255, 255, 0.4);
}

/* Light theme tooltip adjustments */
[data-theme="light"] .modality-icon::after {
    background: rgba(0, 0, 0, 0.8);
    color: white;
}

[data-theme="light"] .input-modality {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(34, 197, 94, 0.1) 100%);
    border-color: rgba(34, 197, 94, 0.4);
}

[data-theme="light"] .input-modality:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.3) 0%, rgba(34, 197, 94, 0.2) 100%);
    border-color: rgba(34, 197, 94, 0.6);
}

[data-theme="light"] .output-modality {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-color: rgba(139, 92, 246, 0.4);
}

[data-theme="light"] .output-modality:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(139, 92, 246, 0.2) 100%);
    border-color: rgba(139, 92, 246, 0.6);
}

/* Light theme modal adjustments */
[data-theme="light"] .modal {
    background-color: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .modal-content {
    background: #ffffff;
    border-color: rgba(148, 163, 184, 0.3);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .memory-input-section textarea,
[data-theme="light"] .memory-item {
    background: rgba(248, 250, 252, 0.8);
    border-color: rgba(148, 163, 184, 0.3);
}

[data-theme="light"] #memory-form textarea:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

[data-theme="light"] .edit-memory,
[data-theme="light"] .delete-memory {
    background: rgba(248, 250, 252, 0.8);
    color: #64748b;
    border-color: rgba(148, 163, 184, 0.3);
}

[data-theme="light"] .no-memories {
    background: rgba(248, 250, 252, 0.8);
    border-color: rgba(148, 163, 184, 0.3);
    color: #64748b;
}

/* Light theme adjustments for change model button */
[data-theme="light"] .modal-content {
    background: #ffffff;
    color: #1f2937;
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 28px 60px -28px rgba(15, 23, 42, 0.25);
}

[data-theme="light"] .modal-header {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .back-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #1e293b;
}

[data-theme="light"] .back-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

[data-theme="light"] .close-modal {
    color: #1e293b;
}

[data-theme="light"] .close-modal:hover {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .modal-btn.ghost {
    border-color: rgba(148, 163, 184, 0.4);
    background: rgba(148, 163, 184, 0.12);
    color: #1e293b;
}

[data-theme="light"] .modal-btn.ghost:hover {
    background: rgba(148, 163, 184, 0.18);
    border-color: rgba(148, 163, 184, 0.45);
}

[data-theme="light"] .modal-btn.tertiary {
    border-color: rgba(148, 163, 184, 0.4);
    background: rgba(148, 163, 184, 0.1);
    color: #475569;
}

[data-theme="light"] .modal-btn.tertiary:hover {
    color: #1e293b;
    background: rgba(148, 163, 184, 0.18);
}

[data-theme="light"] .council-models-select {
    background: rgba(248, 250, 252, 0.9);
    border-color: rgba(148, 163, 184, 0.3);
    color: #1f2937;
}

[data-theme="light"] .provider-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #1e293b;
}

[data-theme="light"] .provider-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

[data-theme="light"] .model-item {
    border: 1px solid #e2e8f0;
}

[data-theme="light"] .model-item:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

[data-theme="light"] .model-name {
    color: #1e293b;
}

[data-theme="light"] .models-for-provider h4 {
    color: #1e293b;
}

/* Light theme adjustments for image modal */
[data-theme="light"] .image-thumbnail {
    border: 2px solid rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] #modal-image {
    border: 3px solid rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .image-expand-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #1e293b;
}

[data-theme="light"] .image-expand-btn:hover {
    background: rgba(255, 255, 255, 1);
}

[data-theme="light"] .image-close-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #1e293b;
}

[data-theme="light"] .image-close-btn:hover {
    background: rgba(255, 0, 0, 0.9);
    color: white;
}
