/* ================================================================
   NORHI Scribe — Desktop Polish Layer
   Additive CSS only — no template changes needed
   ================================================================ */

.welcome-message {
    padding: 48px 32px !important;
}

.welcome-icon {
    width: 72px !important;
    height: 72px !important;
    border-radius: 16px !important;
    box-shadow: 0 2px 12px rgba(15, 61, 52, 0.08);
    margin-bottom: 20px !important;
}

.welcome-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em;
    margin-bottom: 6px !important;
}

.welcome-message > p:first-of-type {
    font-size: 15px;
    color: var(--text-muted);
    letter-spacing: 0.01em;
}

.quick-action-btn {
    padding: 10px 20px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    border-radius: 20px !important;
    border-color: var(--border) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease !important;
}

.quick-action-btn:hover {
    border-color: var(--brand) !important;
    box-shadow: 0 2px 8px rgba(15, 61, 52, 0.1) !important;
    transform: translateY(-1px);
}

.chat-textarea {
    border-radius: 12px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

.chat-textarea:focus {
    box-shadow: 0 0 0 3px rgba(15, 61, 52, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

.send-btn {
    border-radius: 12px !important;
    background: linear-gradient(135deg, #0F3D34 0%, #164D42 100%) !important;
    box-shadow: 0 1px 3px rgba(15, 61, 52, 0.2);
    transition: all 0.2s ease !important;
}

.send-btn:hover:not(:disabled) {
    box-shadow: 0 2px 8px rgba(15, 61, 52, 0.3) !important;
    transform: translateY(-1px);
}

.sidebar-header {
    background: linear-gradient(135deg, #0F3D34 0%, #0D342D 100%) !important;
    padding: 18px 24px !important;
}

.sidebar-brand {
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
}

.sidebar-label {
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.14em !important;
    color: var(--text-subtle) !important;
}

.new-chat-btn {
    border-radius: 10px !important;
    font-weight: 600 !important;
    transition: all 0.15s ease !important;
}

.new-chat-btn:hover {
    background: var(--brand) !important;
    color: var(--white) !important;
}

.conversation-item {
    border-radius: 8px !important;
    transition: background 0.15s ease !important;
}

.conversation-item:hover {
    background: var(--surface-subtle);
}

.conversation-item.active {
    background: var(--info-bg) !important;
    box-shadow: inset 3px 0 0 var(--brand);
}

.chat-header {
    background: var(--white) !important;
    box-shadow: 0 1px 0 var(--border);
    border-bottom: none !important;
}

.chat-title {
    font-weight: 600 !important;
    letter-spacing: -0.01em;
}

.message-text {
    border-radius: 12px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.message-avatar {
    border-radius: 10px !important;
    font-weight: 600;
}

.chat-status {
    font-weight: 500;
    letter-spacing: 0.01em;
}

.sidebar-footer a[href="/guide/"],
.sidebar-footer a[href="/transcribe/"] {
    border-radius: 10px !important;
    font-weight: 600 !important;
    transition: all 0.15s ease !important;
}

.sidebar-footer a[href="/transcribe/"]:hover {
    background: var(--brand) !important;
    color: var(--white) !important;
}

.attach-btn {
    border-radius: 12px !important;
    transition: all 0.15s ease !important;
}

.attach-btn:hover {
    background: var(--info-bg) !important;
    box-shadow: 0 1px 3px rgba(15, 61, 52, 0.08);
}

@media (min-width: 769px) {
    .chat-messages::-webkit-scrollbar {
        width: 6px;
    }
    .chat-messages::-webkit-scrollbar-track {
        background: transparent;
    }
    .chat-messages::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.12);
        border-radius: 3px;
    }
    .chat-messages::-webkit-scrollbar-thumb:hover {
        background: rgba(0, 0, 0, 0.2);
    }
    .sidebar-content::-webkit-scrollbar,
    .conversation-list::-webkit-scrollbar {
        width: 4px;
    }
    .sidebar-content::-webkit-scrollbar-track,
    .conversation-list::-webkit-scrollbar-track {
        background: transparent;
    }
    .sidebar-content::-webkit-scrollbar-thumb,
    .conversation-list::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.1);
        border-radius: 2px;
    }
}

.welcome-message p:last-child {
    font-style: italic;
    letter-spacing: 0.04em;
}

/* Toast notifications */
.toast-container {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9000;
    pointer-events: none;
}

.toast {
    background: #1e293b;
    color: #e2e8f0;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s, transform 0.25s;
}

.toast.visible {
    opacity: 1;
    transform: translateY(0);
}

.toast .toast-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.15);
    border-top-color: #f59e0b;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.toast .toast-bar {
    height: 3px;
    background: #f59e0b;
    border-radius: 2px;
    margin-top: 4px;
    transition: width 0.3s ease;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .toast-container {
        bottom: 80px;
        left: 12px;
        right: 12px;
        transform: none;
    }
    .toast {
        white-space: normal;
        font-size: 12px;
    }
}
