/* =========================================
   THEME VARIABLES
   ========================================= */
:root {
    /* Brand Colors (from rossworden.com) */
    --clr-brand-primary: #64A30E;
    /* Vibrant Green */
    --clr-brand-dark: #020718;
    /* Deep Blue/Black */

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Transitions */
    --theme-transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;

    /* Layout */
    --sidebar-width: 260px;
}

/* =========================================
   DARK THEME (Default - Nexus OS style)
   ========================================= */
:root {
    --clr-bg-base: #02040f;
    /* Deepest dark */
    --clr-bg-panel: #070c1e;
    /* Panel dark */
    --clr-bg-panel-hover: #0a132e;
    --clr-bg-sidebar: #040817;
    /* Sidebar dark */
    --clr-bg-input: #0a132e;

    --clr-text-primary: #f8fafc;
    --clr-text-secondary: #94a3b8;
    --clr-text-muted: #64748b;

    --clr-accent: var(--clr-brand-primary);
    --clr-accent-hover: #75c010;
    --clr-accent-faint: rgba(100, 163, 14, 0.15);

    --clr-border: rgba(255, 255, 255, 0.08);
    --clr-border-focus: rgba(100, 163, 14, 0.5);

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -2px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6), 0 4px 6px -4px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 15px rgba(100, 163, 14, 0.2);

    --panel-radius: 12px;
}

/* =========================================
   LIGHT THEME (Designali style)
   ========================================= */
[data-theme="light"] {
    --clr-bg-base: #f1f5f9;
    /* Soft gray-blue background */
    --clr-bg-panel: #ffffff;
    /* Pure white cards */
    --clr-bg-panel-hover: #f8fafc;
    --clr-bg-sidebar: #ffffff;
    --clr-bg-input: #f8fafc;

    --clr-text-primary: #0f172a;
    --clr-text-secondary: #475569;
    --clr-text-muted: #64748b;

    --clr-accent: var(--clr-brand-dark);
    /* Use brand dark blue for primary actions in light mode */
    --clr-accent-hover: #08153b;
    --clr-accent-faint: rgba(2, 7, 24, 0.05);

    --clr-border: #e2e8f0;
    --clr-border-focus: rgba(2, 7, 24, 0.3);

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.025);
    --shadow-glow: 0 10px 25px rgba(2, 7, 24, 0.1);
}

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

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

/* Reusable Components */
.card-panel {
    background-color: var(--clr-bg-panel);
    border: 1px solid var(--clr-border);
    border-radius: var(--panel-radius);
    box-shadow: var(--shadow-md);
    transition: var(--theme-transition);
}

/* =========================================
   LOGIN PAGE
   ========================================= */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: radial-gradient(circle at 50% 0%, var(--clr-accent-faint), transparent 50%);
}

.login-container {
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-container.justify-center {
    justify-content: center;
}

.logo-icon {
    color: var(--clr-brand-primary);
}

[data-theme="light"] .logo-icon {
    color: var(--clr-brand-primary);
    /* Keep green logo in light mode to maintain brand identity */
}

.login-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.login-header p {
    color: var(--clr-text-secondary);
    font-size: 0.9rem;
}

.error-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    padding: 0.875rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    color: var(--clr-text-secondary);
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    background-color: var(--clr-bg-input);
    color: var(--clr-text-primary);
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9375rem;
    transition: var(--theme-transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--clr-border-focus);
    box-shadow: 0 0 0 2px var(--clr-accent-faint);
}

.btn-primary {
    width: 100%;
    padding: 1rem;
    background-color: var(--clr-accent);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    margin-top: 1rem;
    box-shadow: 0 4px 12px var(--clr-accent-faint);
}

.btn-primary:hover {
    background-color: var(--clr-accent-hover);
}

.btn-primary:active {
    transform: translateY(1px);
}

/* =========================================
   APP LAYOUT
   ========================================= */
.app-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* SIDEBAR */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--clr-bg-sidebar);
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--clr-border);
    flex-shrink: 0;
    transition: var(--theme-transition);
    z-index: 10;
}

.sidebar-header {
    padding: 1.5rem;
}

.sidebar-header h2 {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--clr-text-primary);
}

.sidebar-nav {
    flex: 1;
    padding: 0.5rem 1rem;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 2rem;
}

.nav-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--clr-text-muted);
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
    letter-spacing: 0.05em;
}

.sidebar-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    color: var(--clr-text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    transition: var(--theme-transition);
}

.sidebar-nav li a:hover {
    background-color: var(--clr-bg-panel);
    color: var(--clr-text-primary);
}

.sidebar-nav li.active a {
    background-color: var(--clr-accent-faint);
    color: var(--clr-brand-primary);
    font-weight: 600;
}

[data-theme="light"] .sidebar-nav li.active a {
    color: var(--clr-brand-dark);
}

/* Theme Switcher */
.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--clr-border);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.theme-switch-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--clr-bg-input);
    border: 1px solid var(--clr-border);
    transition: .4s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: var(--clr-text-primary);
    transition: .4s;
    z-index: 2;
}

.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--clr-brand-primary);
    border-color: var(--clr-brand-primary);
}

[data-theme="light"] input:checked+.slider {
    background-color: var(--clr-brand-dark);
    border-color: var(--clr-brand-dark);
}

input:checked+.slider:before {
    transform: translateX(24px);
    background-color: #fff;
}

.sun-icon,
.moon-icon {
    color: var(--clr-text-muted);
    z-index: 1;
}

input:checked+.slider .sun-icon {
    color: rgba(255, 255, 255, 0.8);
}

.theme-switch-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--clr-text-secondary);
}

/* User Profile */
.user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.avatar {
    width: 36px;
    height: 36px;
    background-color: var(--clr-accent-faint);
    color: var(--clr-brand-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

[data-theme="light"] .avatar {
    color: var(--clr-brand-dark);
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--clr-text-primary);
}

.user-role {
    font-size: 0.75rem;
    color: var(--clr-text-muted);
}

.logout-btn {
    color: var(--clr-text-muted);
    transition: color 0.2s;
    display: flex;
    padding: 0.5rem;
    border-radius: 6px;
}

.logout-btn:hover {
    color: var(--clr-text-primary);
    background-color: var(--clr-bg-panel);
}

/* MAIN CONTENT */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.main-header {
    height: 72px;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--clr-border);
    background-color: transparent;
    z-index: 5;
}

/* =========================================
   CONVERSATIONS SIDEBAR
   ========================================= */
.conversations-panel {
    width: 260px;
    background-color: var(--clr-bg-panel);
    border-right: 1px solid var(--clr-border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: var(--theme-transition), transform 0.3s ease;
}

.conversations-header {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--clr-border);
}

.btn-new-chat {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background-color: var(--clr-accent-faint);
    color: var(--clr-text-primary);
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 1rem;
}

.btn-new-chat:hover {
    background-color: var(--clr-bg-panel-hover);
    border-color: var(--clr-accent);
}

.search-container {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--clr-text-muted);
}

.search-container input {
    width: 100%;
    padding: 0.625rem 0.75rem 0.625rem 2.25rem;
    background-color: var(--clr-bg-input);
    border: 1px solid var(--clr-border);
    border-radius: 6px;
    color: var(--clr-text-primary);
    font-family: inherit;
    font-size: 0.8125rem;
    transition: all 0.2s;
}

.search-container input:focus {
    outline: none;
    border-color: var(--clr-border-focus);
}

.conversations-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.conversations-list::-webkit-scrollbar {
    width: 4px;
}

.conversations-list::-webkit-scrollbar-track {
    background: transparent;
}

.conversations-list::-webkit-scrollbar-thumb {
    background: var(--clr-border);
    border-radius: 2px;
}

.conversations-empty-state {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--clr-text-muted);
    font-size: 0.875rem;
}

.conv-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
    position: relative;
    border: 1px solid transparent;
}

.conv-item:hover {
    background-color: var(--clr-bg-panel-hover);
}

.conv-item.active {
    background-color: var(--clr-accent-faint);
    border-color: var(--clr-border-focus);
}

.conv-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.conv-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--clr-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.25rem;
}

.conv-active-icon {
    color: var(--clr-brand-primary);
    margin-right: 0.25rem;
    display: none;
}

.conv-item.active .conv-active-icon {
    display: inline-block;
}

.conv-time {
    font-size: 0.7rem;
    color: var(--clr-text-muted);
}

/* Edit Title Input */
.conv-edit-input {
    width: 100%;
    background: var(--clr-bg-base);
    color: var(--clr-text-primary);
    border: 1px solid var(--clr-accent);
    padding: 2px 4px;
    font-family: inherit;
    font-size: 0.875rem;
    border-radius: 4px;
    display: none;
}

.conv-item.editing .conv-title {
    display: none;
}

.conv-item.editing .conv-edit-input {
    display: block;
}

/* Options Menu */
.conv-options-btn {
    background: transparent;
    border: none;
    color: var(--clr-text-muted);
    cursor: pointer;
    padding: 0.125rem;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.2s;
    position: relative;
}

.conv-item:hover .conv-options-btn,
.conv-options-btn.active {
    opacity: 1;
}

.conv-options-btn:hover {
    background-color: var(--clr-bg-input);
    color: var(--clr-text-primary);
}

.conv-options-menu {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 4px;
    background-color: var(--clr-bg-panel);
    border: 1px solid var(--clr-border);
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
    z-index: 100;
    min-width: 120px;
    display: none;
    flex-direction: column;
    padding: 0.25rem;
}

.conv-options-menu.show {
    display: flex;
}

.conv-option-item {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    text-align: left;
    background: transparent;
    border: none;
    color: var(--clr-text-primary);
    cursor: pointer;
    border-radius: 4px;
}

.conv-option-item:hover {
    background-color: var(--clr-bg-input);
}

.conv-option-item.danger {
    color: #ef4444;
}

.conv-option-item.danger:hover {
    background-color: rgba(239, 68, 68, 0.1);
}

/* Mobile Toggle */
.menu-toggle-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--clr-text-primary);
    cursor: pointer;
}

@media (max-width: 1024px) {
    .menu-toggle-btn {
        display: block;
    }

    .conversations-panel {
        position: absolute;
        left: var(--sidebar-width);
        top: 0;
        bottom: 0;
        z-index: 20;
        transform: translateX(-100%);
    }

    .conversations-panel.open {
        transform: translateX(0);
    }
}

.header-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-title h1 {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.status-badge {
    background-color: rgba(100, 163, 14, 0.15);
    color: var(--clr-brand-primary);
    border: 1px solid rgba(100, 163, 14, 0.3);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.system-time {
    font-size: 0.8125rem;
    font-family: monospace;
    color: var(--clr-text-muted);
}

/* WORKSPACE */
.workspace-area {
    flex: 1;
    padding: 1.5rem;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.chat-panel {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-history {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    scroll-behavior: smooth;
}

/* Custom Scrollbar for chat history */
.chat-history::-webkit-scrollbar {
    width: 6px;
}

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

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

.empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--clr-text-secondary);
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    background-color: var(--clr-accent-faint);
    color: var(--clr-brand-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

[data-theme="light"] .empty-state-icon {
    color: var(--clr-brand-dark);
}

.empty-state h3 {
    font-size: 1.25rem;
    color: var(--clr-text-primary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 0.9375rem;
    max-width: 400px;
    line-height: 1.6;
}

.message {
    display: flex;
    flex-direction: column;
    max-width: 85%;
    animation: fadeIn 0.3s ease;
}

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

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

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

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

.message-timestamp {
    font-size: 0.7rem;
    color: var(--clr-text-muted);
    margin-bottom: 0.25rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.message-user .message-timestamp {
    text-align: right;
    margin-right: 0.25rem;
}

.message-assistant .message-timestamp {
    text-align: left;
    margin-left: 0.25rem;
}

.message:hover .message-timestamp {
    opacity: 1;
}

.message-content {
    padding: 1rem 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    word-break: break-word;
}

.message-user .message-content {
    background-color: var(--clr-accent);
    color: #ffffff;
    border-radius: 12px 12px 0 12px;
    box-shadow: 0 4px 10px var(--clr-accent-faint);
}

.message-assistant .message-content {
    background-color: var(--clr-bg-input);
    color: var(--clr-text-primary);
    border-radius: 12px 12px 12px 0;
    border: 1px solid var(--clr-border);
}

/* =========================================
   MARKDOWN RENDER STYLES 
   ========================================= */
.message-assistant .message-content p {
    margin-bottom: 0.75rem;
}

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

.message-assistant .message-content ul,
.message-assistant .message-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.message-assistant .message-content li {
    margin-bottom: 0.25rem;
}

.message-assistant .message-content h1,
.message-assistant .message-content h2,
.message-assistant .message-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--clr-text-primary);
}

.message-assistant .message-content h1 {
    font-size: 1.4rem;
    border-bottom: 1px solid var(--clr-border);
    padding-bottom: 0.25rem;
}

.message-assistant .message-content h2 {
    font-size: 1.2rem;
}

.message-assistant .message-content h3 {
    font-size: 1.05rem;
}

.message-assistant .message-content code {
    font-family: inherit;
    /* use regular monospace below */
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    background-color: var(--clr-bg-base);
    padding: 0.15rem 0.3rem;
    border-radius: 4px;
    font-size: 0.85em;
    border: 1px solid var(--clr-border);
}

.message-assistant .message-content pre {
    background-color: var(--clr-bg-base);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    overflow-x: auto;
    border: 1px solid var(--clr-border);
}

.message-assistant .message-content pre code {
    background-color: transparent;
    padding: 0;
    border: none;
    font-size: 0.85em;
    color: var(--clr-text-primary);
}

.message-assistant .message-content pre::-webkit-scrollbar {
    height: 6px;
}

.message-assistant .message-content pre::-webkit-scrollbar-track {
    background: transparent;
}

.message-assistant .message-content pre::-webkit-scrollbar-thumb {
    background: var(--clr-border);
    border-radius: 3px;
}

.message-assistant .message-content blockquote {
    border-left: 3px solid var(--clr-brand-primary);
    padding-left: 1rem;
    margin: 1rem 0;
    color: var(--clr-text-secondary);
}

/* Input Area */
.chat-input-area {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--clr-border);
    background-color: var(--clr-bg-panel);
    border-radius: 0 0 var(--panel-radius) var(--panel-radius);
}

.chat-form {
    display: flex;
    align-items: flex-end;
    background-color: var(--clr-bg-input);
    border: 1px solid var(--clr-border);
    border-radius: 12px;
    padding: 0.5rem;
    transition: var(--theme-transition);
}

.chat-form:focus-within {
    border-color: var(--clr-border-focus);
    box-shadow: 0 0 0 2px var(--clr-accent-faint);
}

.chat-form textarea {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.5rem 0.75rem;
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--clr-text-primary);
    resize: none;
    min-height: 24px;
    max-height: 150px;
    line-height: 1.5;
}

.chat-form textarea:focus {
    outline: none;
}

.chat-form textarea::placeholder {
    color: var(--clr-text-muted);
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--clr-accent);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    margin-left: 0.5rem;
    flex-shrink: 0;
}

.btn-icon:hover {
    background-color: var(--clr-accent-hover);
}

.btn-icon:active {
    transform: scale(0.95);
}

.btn-icon:disabled {
    background-color: var(--clr-bg-input);
    color: var(--clr-text-muted);
    border: 1px solid var(--clr-border);
    cursor: not-allowed;
}

.input-footer {
    text-align: center;
    font-size: 0.65rem;
    color: var(--clr-text-muted);
    margin-top: 0.75rem;
}

/* Loading Indicator */
.loading-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.25rem;
}

.dot {
    width: 6px;
    height: 6px;
    background-color: var(--clr-text-muted);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.dot:nth-child(1) {
    animation-delay: -0.32s;
}

.dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
        opacity: 0.5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}