/* Coffee Color Scheme Variables */
:root {
    --espresso: #2c1e16;
    --dark-roast: #3b2820;
    --medium-roast: #5d4037;
    --light-roast: #7b5d52;
    --mocha: #9c7b65;
    --caramel: #c8a387;
    --cream: #e6d2ba;
    --latte: #f0e6d2;
    --cinnamon: #d2a679;
    --hazelnut: #be8c63;
    --vanilla: #f5eee2;
    --chocolate: #4e342e;
    --text: #e6d2ba;
    --subtext1: #c8a387;
    --subtext0: #9c7b65;
    --overlay2: #8d6e5c;
    --overlay1: #7b5d52;
    --overlay0: #6b5046;
    --surface2: #56433a;
    --surface1: #4b392f;
    --surface0: #3b2820;
    --base: #32251c;
    --mantle: #2c1e16;
    --crust: #251811;
    
    /* Additional colors for UI elements */
    --success: #4ade80;
    --warning: #facc15;
    --error: #ef4444;
    --info: #3b82f6;
    --online: #10b981;
    
    /* Shadows and effects */
    --shadow-sm: 0 1px 2px 0 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);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Border radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--base);
    color: var(--text);
    line-height: 1.6;
    height: 100vh;
    overflow: hidden;
    display: flex;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--surface0);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb {
    background: var(--overlay0);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--overlay1);
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background: var(--mantle);
    border-right: 1px solid var(--surface0);
    display: flex;
    flex-direction: column;
    transition: var(--transition-normal);
    position: relative;
    z-index: 10;
}

.sidebar-header {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid var(--surface0);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

.logo i {
    font-size: 1.5rem;
    color: var(--caramel);
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--subtext1);
    font-size: 1.125rem;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    display: none;
}

.sidebar-toggle:hover {
    background: var(--surface0);
    color: var(--text);
}

.sidebar-content {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.new-chat-btn {
    background: var(--caramel);
    color: var(--espresso);
    border: none;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.new-chat-btn:hover {
    background: var(--cinnamon);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.chat-history {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history-section h3 {
    color: var(--subtext1);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.chat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    color: var(--subtext0);
    position: relative;
}

.chat-item:hover {
    background: var(--surface0);
    color: var(--text);
}

.chat-item.active {
    background: var(--surface1);
    color: var(--text);
}

.chat-item i {
    font-size: 0.875rem;
    flex-shrink: 0;
}

.chat-item span {
    flex: 1;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-options {
    background: none;
    border: none;
    color: var(--subtext0);
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
    opacity: 0;
}

.chat-item:hover .chat-options {
    opacity: 1;
}

.chat-options:hover {
    background: var(--surface0);
    color: var(--text);
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--surface0);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-fast);
}

.user-profile:hover {
    background: var(--surface0);
}

.avatar {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--surface2);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--subtext1);
    font-size: 1.125rem;
}

.user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.username {
    font-weight: 600;
    color: var(--text);
    font-size: 0.875rem;
}

.status {
    font-size: 0.75rem;
    color: var(--subtext0);
}

.profile-menu {
    background: none;
    border: none;
    color: var(--subtext1);
    padding: 0.25rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.profile-menu:hover {
    color: var(--text);
}

/* Main Chat Area */
.main-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--base);
    position: relative;
}

/* Chat Header */
.chat-header {
    background: var(--mantle);
    border-bottom: 1px solid var(--surface0);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 5;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    color: var(--subtext1);
    font-size: 1.125rem;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    display: none;
}

.mobile-menu-toggle:hover {
    background: var(--surface0);
    color: var(--text);
}

.bot-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.bot-avatar {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, var(--caramel), var(--cinnamon));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--espresso);
    font-size: 1.125rem;
    box-shadow: var(--shadow-md);
}

.bot-details h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.125rem;
}

.bot-status {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--subtext1);
}

.bot-status .fa-circle {
    font-size: 0.5rem;
    color: var(--online);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn {
    background: none;
    border: none;
    color: var(--subtext1);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.875rem;
}

.action-btn:hover {
    background: var(--surface0);
    color: var(--text);
}

/* Chat Container */
.chat-container {
    flex: 1;
    overflow-y: auto;
    background: var(--base);
    position: relative;
}

.chat-messages {
    padding: 1.5rem;
    max-width: 48rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Message Styles */
.message-group {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.message-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
    margin-top: 0.5rem;
}

.bot-message .message-avatar {
    background: linear-gradient(135deg, var(--caramel), var(--cinnamon));
    color: var(--espresso);
}

.user-message .message-avatar {
    background: var(--surface2);
    color: var(--subtext1);
}

.message-content {
    flex: 1;
    min-width: 0;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.sender-name {
    font-weight: 600;
    color: var(--text);
    font-size: 0.875rem;
}

.message-time {
    color: var(--subtext0);
    font-size: 0.75rem;
}

.message-bubble {
    background: var(--surface0);
    border-radius: var(--radius-xl);
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    border: 1px solid var(--surface1);
    position: relative;
}

.bot-message .message-bubble {
    background: var(--surface0);
    border-left: 3px solid var(--caramel);
}

.user-message .message-bubble {
    background: var(--surface1);
    border-left: 3px solid var(--mocha);
}

.message-bubble p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.message-bubble p:last-child {
    margin-bottom: 0;
}

.message-actions {
    display: flex;
    gap: 0.25rem;
    opacity: 0;
    transition: var(--transition-fast);
}

.message-group:hover .message-actions {
    opacity: 1;
}

.message-actions .action-btn {
    padding: 0.5rem;
    font-size: 0.75rem;
}

/* Input Area */
.input-area {
    background: var(--mantle);
    border-top: 1px solid var(--surface0);
    padding: 1.5rem;
    position: relative;
}

.input-container {
    max-width: 48rem;
    margin: 0 auto;
}

.input-wrapper {
    background: var(--surface0);
    border: 1px solid var(--surface1);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    padding: 0.75rem;
    transition: var(--transition-fast);
    position: relative;
}

.input-wrapper:focus-within {
    border-color: var(--caramel);
    box-shadow: 0 0 0 3px rgba(200, 163, 135, 0.1);
}

.attachment-btn {
    background: none;
    border: none;
    color: var(--subtext1);
    padding: 0.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 1rem;
    align-self: flex-end;
}

.attachment-btn:hover {
    background: var(--surface1);
    color: var(--text);
}

.text-input-container {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    position: relative;
}

.message-input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.5;
    padding: 0.5rem 0;
    resize: none;
    min-height: 1.5rem;
    max-height: 8rem;
    outline: none;
    font-family: inherit;
}

.message-input::placeholder {
    color: var(--subtext0);
}

.input-actions {
    display: flex;
    gap: 0.25rem;
    align-self: flex-end;
}

.emoji-btn {
    background: none;
    border: none;
    color: var(--subtext1);
    padding: 0.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 1rem;
}

.emoji-btn:hover {
    background: var(--surface1);
    color: var(--text);
}

.send-btn {
    background: var(--caramel);
    color: var(--espresso);
    border: none;
    padding: 0.75rem;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 1rem;
    align-self: flex-end;
}

.send-btn:hover {
    background: var(--cinnamon);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.send-btn:disabled {
    background: var(--surface2);
    color: var(--subtext0);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    gap: 1rem;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.character-count {
    font-size: 0.75rem;
    color: var(--subtext0);
}

.input-suggestions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.suggestion-chip {
    background: var(--surface1);
    border: 1px solid var(--surface2);
    color: var(--subtext1);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.suggestion-chip:hover {
    background: var(--surface2);
    color: var(--text);
    border-color: var(--overlay0);
}

.suggestion-chip i {
    font-size: 0.625rem;
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        z-index: 10;
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .mobile-overlay.active {
        display: block;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .sidebar-toggle {
        display: flex;
    }
    
    .chat-messages {
        padding: 1rem;
    }
    
    .input-area {
        padding: 1rem;
    }
    
    .input-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .input-suggestions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .header-actions {
        gap: 0.25rem;
    }
    
    .action-btn {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 100%;
    }
    
    .chat-header {
        padding: 1rem;
    }
    
    .bot-details h2 {
        font-size: 1rem;
    }
    
    .input-wrapper {
        padding: 0.5rem;
    }
    
    .suggestion-chip {
        font-size: 0.6875rem;
        padding: 0.375rem 0.625rem;
    }
}

/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Utility Classes */
.fade-in {
    animation: fadeIn 0.3s ease-out;
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

.pulse {
    animation: pulse 2s infinite;
}

/* Focus Styles */
button:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--caramel);
    outline-offset: 2px;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1rem;
    height: 1rem;
    margin: -0.5rem 0 0 -0.5rem;
    border: 2px solid var(--surface2);
    border-top: 2px solid var(--caramel);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Typing Indicator Animation */
.typing-dots {
    display: inline-flex;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
}

.typing-dots span {
    width: 0.5rem;
    height: 0.5rem;
    background: var(--subtext0);
    border-radius: 50%;
    animation: typingDots 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingDots {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Message Status Indicators */
.message-status {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.625rem;
    color: var(--subtext0);
    margin-left: 0.5rem;
}

.message-status.sent i {
    color: var(--subtext1);
}

.message-status.delivered i {
    color: var(--info);
}

.message-status.read i {
    color: var(--success);
}

/* Context Menu */
.context-menu {
    position: absolute;
    background: var(--surface0);
    border: 1px solid var(--surface1);
    border-radius: var(--radius-lg);
    padding: 0.5rem;
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    min-width: 12rem;
}

.context-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.875rem;
    color: var(--text);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}

.context-menu-item:hover {
    background: var(--surface1);
}

.context-menu-item.danger {
    color: var(--error);
}

.context-menu-item.danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

.context-menu-divider {
    height: 1px;
    background: var(--surface1);
    margin: 0.5rem 0;
}

/* Tooltip */
.tooltip {
    position: relative;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface2);
    color: var(--text);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-fast);
    margin-bottom: 0.5rem;
    box-shadow: var(--shadow-md);
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: var(--surface2);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-fast);
}

.tooltip:hover::before,
.tooltip:hover::after {
    opacity: 1;
}

/* Settings Panel */
.settings-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 20rem;
    height: 100%;
    background: var(--mantle);
    border-left: 1px solid var(--surface0);
    padding: 1.5rem;
    transform: translateX(100%);
    transition: var(--transition-normal);
    z-index: 20;
    overflow-y: auto;
}

.settings-panel.open {
    transform: translateX(0);
}

.settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.settings-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
}

.settings-close {
    background: none;
    border: none;
    color: var(--subtext1);
    padding: 0.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
}

.settings-close:hover {
    background: var(--surface0);
    color: var(--text);
}

.settings-section {
    margin-bottom: 2rem;
}

.settings-section h4 {
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--surface0);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-label {
    color: var(--text);
    font-size: 0.875rem;
}

.setting-description {
    color: var(--subtext0);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 2.5rem;
    height: 1.25rem;
    background: var(--surface2);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-fast);
}

.toggle-switch.active {
    background: var(--caramel);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 0.125rem;
    left: 0.125rem;
    width: 1rem;
    height: 1rem;
    background: var(--text);
    border-radius: 50%;
    transition: var(--transition-fast);
}

.toggle-switch.active::after {
    transform: translateX(1.25rem);
}

/* Code Block Styling */
.code-block {
    background: var(--crust);
    border: 1px solid var(--surface0);
    border-radius: var(--radius-lg);
    padding: 1rem;
    margin: 1rem 0;
    position: relative;
    overflow-x: auto;
}

.code-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--surface0);
}

.code-language {
    color: var(--subtext1);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.copy-code-btn {
    background: none;
    border: none;
    color: var(--subtext1);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.75rem;
}

.copy-code-btn:hover {
    background: var(--surface0);
    color: var(--text);
}

.code-content {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--text);
    white-space: pre;
    overflow-x: auto;
}

/* File Upload Area */
.file-upload-area {
    border: 2px dashed var(--surface1);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition-fast);
    cursor: pointer;
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: var(--caramel);
    background: rgba(200, 163, 135, 0.05);
}

.file-upload-icon {
    font-size: 2rem;
    color: var(--subtext1);
    margin-bottom: 1rem;
}

.file-upload-text {
    color: var(--text);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.file-upload-subtext {
    color: var(--subtext0);
    font-size: 0.875rem;
}

/* Notification Toast */
.toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: var(--surface0);
    border: 1px solid var(--surface1);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    max-width: 20rem;
    transform: translateX(100%);
    transition: var(--transition-normal);
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left: 3px solid var(--success);
}

.toast.error {
    border-left: 3px solid var(--error);
}

.toast.warning {
    border-left: 3px solid var(--warning);
}

.toast.info {
    border-left: 3px solid var(--info);
}

.toast-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.toast-icon {
    font-size: 1.125rem;
    margin-top: 0.125rem;
}

.toast.success .toast-icon {
    color: var(--success);
}

.toast.error .toast-icon {
    color: var(--error);
}

.toast.warning .toast-icon {
    color: var(--warning);
}

.toast.info .toast-icon {
    color: var(--info);
}

.toast-message {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.toast-description {
    color: var(--subtext0);
    font-size: 0.875rem;
}

.toast-close {
    background: none;
    border: none;
    color: var(--subtext1);
    padding: 0.25rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.toast-close:hover {
    color: var(--text);
}

/* Additional Responsive Adjustments */
@media (max-width: 1024px) {
    .settings-panel {
        width: 18rem;
    }
}

@media (max-width: 768px) {
    .settings-panel {
        width: 100%;
    }
    
    .toast {
        top: auto;
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        max-width: none;
        transform: translateY(100%);
    }
    
    .toast.show {
        transform: translateY(0);
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --text: #ffffff;
        --subtext1: #e0e0e0;
        --subtext0: #c0c0c0;
        --surface0: #1a1a1a;
        --surface1: #2a2a2a;
        --surface2: #3a3a3a;
        --base: #000000;
        --mantle: #111111;
        --crust: #0a0a0a;
    }
    
    .message-bubble,
    .input-wrapper,
    .sidebar,
    .main-chat {
        border-width: 2px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}