* {
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --danger-color: #ef4444;
    --danger-hover: #dc2626;
    --radius: 8px;
    --radius-sm: 6px;
    --radius-lg: 12px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Dark theme (default) */
    --background-primary: #212121;
    --background-secondary: #171717;
    --background-tertiary: #2f2f2f;
    --text-primary: #ececec;
    --text-secondary: #8e8ea0;
    --border-color: #2f2f2f;
    --border-hover: #565656;
    --shadow: 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);
}

/* Light theme */
[data-theme="light"] {
    --background-primary: #ffffff;
    --background-secondary: #f8f9fa;
    --background-tertiary: #e9ecef;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --border-color: #dee2e6;
    --border-hover: #adb5bd;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--background-primary);
    color: var(--text-primary);
    height: 100vh;
    overflow: hidden;
    transition: var(--transition);
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--background-primary), var(--background-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    animation: fadeInScale 0.6s ease-out;
}

.loading-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.3);
    animation: float 3s ease-in-out infinite;
}

.loading-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.loading-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 32px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 2s ease-in-out infinite;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 32px 0;
}

.spinner-ring {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    animation: bounce 1.4s ease-in-out infinite;
}

.spinner-ring:nth-child(1) {
    animation-delay: 0s;
}

.spinner-ring:nth-child(2) {
    animation-delay: 0.2s;
}

.spinner-ring:nth-child(3) {
    animation-delay: 0.4s;
}

.loading-text {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

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

/* Sidebar Styles */
.sidebar {
    width: 260px;
    background-color: var(--background-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.sidebar-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.new-chat-btn {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border: none;
    border-radius: var(--radius);
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.new-chat-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.new-chat-btn:hover::before {
    left: 100%;
}

.new-chat-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -10px var(--primary-color);
}

.new-chat-btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow);
}

/* Search Container */
.search-container {
    position: relative;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: var(--text-secondary);
    z-index: 1;
}

.search-input {
    width: 100%;
    padding: 10px 12px 10px 40px;
    background-color: var(--background-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(16, 163, 127, 0.1);
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.clear-search {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.clear-search:hover {
    color: var(--text-primary);
    background-color: var(--background-tertiary);
}

.chat-history {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.chat-history-item {
    position: relative;
    padding: 12px 20px;
    margin: 2px 0;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    box-sizing: border-box;
}

.chat-history-item:hover {
    background-color: var(--background-tertiary);
    transform: translateX(4px);
    padding-left: 24px;
}

.chat-history-item:hover .chat-actions {
    opacity: 1;
}

.chat-history-item.active {
    background-color: var(--primary-color);
    color: white;
    transform: translateX(0);
    box-shadow: 0 0 20px -8px var(--primary-color);
}

.chat-history-item.active .chat-action-btn {
    color: rgba(255, 255, 255, 0.8);
}

.chat-history-item.active .chat-action-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.chat-history-item.active .chat-action-btn.delete:hover {
    background-color: var(--danger-color);
    color: white;
}

.chat-actions {
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: var(--transition);
    flex-shrink: 0;
    margin-left: 12px;
    padding-right: 4px;
}

.chat-action-btn {
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.chat-action-btn:hover {
    background-color: var(--background-tertiary);
    color: var(--text-primary);
}

.chat-action-btn.delete:hover {
    background-color: var(--danger-color);
    color: white;
}

.chat-title-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.sidebar-footer {
    padding: 12px;
    border-top: 1px solid var(--border-color);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.user-info:hover {
    background-color: var(--background-tertiary);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background-color: var(--primary-color);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: white;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
}

.sidebar-actions {
    margin-top: 8px;
    display: flex;
    gap: 4px;
}

.action-btn {
    width: 32px;
    height: 32px;
    background-color: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.action-btn:hover {
    background-color: var(--background-tertiary);
}

/* Main Content Styles */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--background-primary);
    min-width: 0;
}

.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    height: 100%;
}

.chat-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--background-primary);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.mobile-menu-btn:hover {
    background-color: var(--background-tertiary);
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    flex: 1;
}

.chat-logo {
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

.chat-box {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    background-color: var(--background-primary);
}

/* Message Styles */
.message {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    opacity: 0;
    animation: fadeInUp 0.4s ease-out forwards;
}

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

.message-content {
    max-width: 100%;
    margin: 0;
    padding: 0;
    width: 100%;
}

.message .user, .message .floppa {
    padding: 24px;
    display: flex;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
    box-sizing: border-box;
    color: var(--text-primary);
}

.message .user {
    background-color: var(--background-primary);
}

.message .floppa {
    background-color: var(--background-secondary);
}

.avatar {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
    overflow: hidden;
}

.user .avatar {
    background-color: var(--primary-color);
    color: white;
    font-size: 14px;
}

.floppa .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-text {
    flex: 1;
    padding-right: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: calc(100% - 46px);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
}

.message-text p {
    margin: 0 0 12px 0;
    line-height: 1.7;
}

.message-text p:first-child {
    margin-top: 0;
}

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

.message-text ul, .message-text ol {
    margin: 12px 0;
    padding-left: 28px;
}

.message-text li {
    margin: 6px 0;
    line-height: 1.7;
}

.message-text code:not([class*="language-"]) {
    background-color: var(--background-tertiary);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 14px;
    color: var(--text-primary);
}

/* Input Area Styles */
.input-container {
    padding: 24px;
    background-color: var(--background-primary);
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.input-area {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--background-tertiary);
    border: 1px solid var(--border-hover);
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
    transform: translateY(-1px);
}

.input-field {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1.5;
    resize: none;
    min-height: 24px;
    max-height: 200px;
    font-family: inherit;
    padding: 0;
    margin: 0;
}

.input-field::placeholder {
    color: var(--text-secondary);
}

.send-button {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    flex-shrink: 0;
}

.send-button:not(:disabled):hover {
    color: white;
    background-color: var(--primary-color);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 12px -4px var(--primary-color);
}

.send-button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.send-button:not(:disabled) {
    color: var(--primary-color);
}

.send-button:active:not(:disabled) {
    transform: scale(0.95);
}

/* Code Block Styles */
pre {
    background-color: var(--background-tertiary);
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    overflow-x: auto;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--border-color);
}

code {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 14px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.hljs {
    background: transparent;
    max-width: 100%;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 4px 0;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background-color: var(--text-secondary);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

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

@keyframes typing {
    0%, 60%, 100% { 
        transform: translateY(0);
        opacity: 0.4;
    }
    30% { 
        transform: translateY(-4px);
        opacity: 1;
    }
}

/* Scrollbar Styles */
.chat-box::-webkit-scrollbar,
.chat-history::-webkit-scrollbar {
    width: 6px;
}

.chat-box::-webkit-scrollbar-track,
.chat-history::-webkit-scrollbar-track {
    background: transparent;
}

.chat-box::-webkit-scrollbar-thumb,
.chat-history::-webkit-scrollbar-thumb {
    background: var(--border-hover);
    border-radius: 3px;
}

.chat-box::-webkit-scrollbar-thumb:hover,
.chat-history::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .sidebar {
        width: 100vw;
        height: 100vh;
        position: fixed;
        top: 0;
        left: -100%;
        z-index: 1000;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: none;
    }
    
    .sidebar.open {
        left: 0;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3);
    }
    
    .main-content {
        width: 100%;
    }
    
    .chat-container {
        max-width: 100%;
    }
    
    .input-container {
        padding: 16px;
    }
    
    .message .user, .message .floppa {
        padding: 16px;
    }
    
    .chat-header {
        padding: 12px 16px;
    }
    
    .chat-title {
        font-size: 16px;
    }
    
    .input-wrapper {
        padding: 8px 12px;
    }
    
    .input-field {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 100%;
    }
    
    .input-container {
        padding: 12px;
    }
    
    .message .user, .message .floppa {
        padding: 12px;
        gap: 12px;
    }
    
    .avatar {
        width: 24px;
        height: 24px;
    }
    
    .message-text {
        font-size: 14px;
        max-width: calc(100% - 36px);
    }
    
    .chat-header {
        padding: 8px 12px;
    }
    
    .chat-title {
        font-size: 14px;
    }
    
    .chat-logo {
        width: 24px;
        height: 24px;
    }
}

/* Message formatting styles */
.message-text ul,
.message-text ol {
    margin: 12px 0;
    padding-left: 28px;
    line-height: 1.8;
    color: var(--text-primary);
}

.message-text ul {
    list-style-type: disc;
}

.message-text ol {
    list-style-type: decimal;
}

.message-text li {
    margin: 6px 0;
    padding-left: 4px;
    color: var(--text-primary);
}

.message-text li::marker {
    color: var(--primary-color);
    font-weight: 600;
}

.message-text strong {
    font-weight: 600;
    color: var(--text-primary) !important;
}

/* More specific rule to ensure bold text is visible */
.message .message-text strong {
    color: var(--text-primary) !important;
}

.message-text em {
    font-style: italic;
    color: var(--text-primary) !important;
}

/* More specific rule to ensure italic text is visible */
.message .message-text em {
    color: var(--text-primary) !important;
}

.message-text .emoji {
    display: inline-block;
    margin: 0 2px;
    font-size: 1.2em;
    vertical-align: middle;
}

.message-text pre code {
    background: transparent;
    padding: 0;
    border-radius: 0;
}

/* Enhanced Markdown Styles */
.message-text h1, .message-text h2, .message-text h3 {
    color: var(--text-primary);
    margin: 16px 0 8px 0;
    font-weight: 600;
}

.message-text h1 {
    font-size: 1.5em;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 8px;
}

.message-text h2 {
    font-size: 1.3em;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 4px;
}

.message-text h3 {
    font-size: 1.1em;
}

.message-text blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 16px;
    margin: 16px 0;
    color: var(--text-primary);
    font-style: italic;
    background-color: var(--background-tertiary);
    padding: 12px 16px;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.message-text hr {
    border: none;
    height: 1px;
    background-color: var(--border-color);
    margin: 24px 0;
}

.message-text a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.message-text a:hover {
    border-bottom-color: var(--primary-color);
}

.message-text del {
    color: var(--text-secondary);
    text-decoration: line-through;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(0px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    backdrop-filter: blur(8px);
}

.modal {
    background-color: var(--background-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.8) translateY(40px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: none;
}

.modal-overlay.active .modal.active {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-large {
    max-width: 600px;
}

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

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

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.modal-close:hover {
    background-color: var(--background-tertiary);
    color: var(--text-primary);
}

.modal-content {
    padding: 24px;
}

.modal-input {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--background-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
}

.modal-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(16, 163, 127, 0.1);
}

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

/* Button Styles */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--background-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--border-hover);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: var(--danger-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

/* Settings Styles */
.settings-section {
    margin-bottom: 24px;
}

.settings-section h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.setting-item {
    margin-bottom: 16px;
}

.setting-item label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.setting-select {
    width: 100%;
    padding: 10px 12px;
    background-color: var(--background-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
}

.setting-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(16, 163, 127, 0.1);
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin-bottom: 0 !important;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    position: relative;
    transition: var(--transition);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.setting-description {
    margin: 8px 0 0 0;
    font-size: 12px;
    color: var(--text-secondary);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background-color: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 16px 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    transform: translateX(100%);
    transition: var(--transition);
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left: 4px solid var(--primary-color);
}

.toast.error {
    border-left: 4px solid var(--danger-color);
}

.toast-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    margin: 0 0 4px 0;
    color: var(--text-primary);
}

.toast-message {
    font-size: 14px;
    margin: 0;
    color: var(--text-secondary);
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.toast-close:hover {
    background-color: var(--background-tertiary);
    color: var(--text-primary);
}