/* LarkAgentX Dashboard Styles — Warm Amber & Gold Light Theme */

/* Status text hidden by default (shown in sidebar) */
#statusText {
    display: none;
}

/* Nav button active state */
.nav-btn.active,
.nav-btn.bg-amber-600 {
    background-color: #d97706 !important;
    color: white !important;
}

/* Modal backdrop */
.modal-backdrop {
    background-color: rgba(28, 25, 23, 0.35);
    backdrop-filter: blur(8px);
}

/* Smooth transitions — conservative, don't animate layout */
* {
    transition-property: background-color, border-color, color, opacity, box-shadow;
    transition-duration: 0.15s;
    transition-timing-function: ease;
}

/* Reset transitions on interactive elements */
input, textarea, button, a, .toast {
    transition-property: all;
    transition-duration: 0.2s;
}

/* Tab content sections */
#section-messages,
#section-send,
#section-config {
    flex: 1;
}

/* ===== COMPOSE / TEXTAREA ===== */
.compose-textarea {
    background-color: #f5f3ef;
    border: 1px solid transparent;
    border-radius: 0.875rem;
    padding: 0.75rem 1rem;
    color: #1c1917;
    width: 100%;
    resize: none;
    font-size: 0.875rem;
    line-height: 1.5;
    min-height: 2.75rem;
    max-height: 8rem;
    transition: all 0.2s;
}

.compose-textarea:focus {
    outline: none;
    background-color: #ffffff;
    border-color: #d97706;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.08);
}

.compose-textarea::placeholder {
    color: #a8a29e;
}

/* ===== BADGES ===== */
.badge-info {
    background-color: rgba(217, 119, 6, 0.1);
    color: #b45309;
}

/* ===== PULSE / LIVE INDICATORS ===== */
@keyframes pulse-amber {
    0%, 100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.4); }
    50% { box-shadow: 0 0 0 4px rgba(217, 119, 6, 0); }
}

.pulse-live {
    animation: pulse-amber 2s ease-in-out infinite;
}

/* ===== FOCUS RING ===== */
.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== SIDEBAR ===== */
.sidebar-nav {
    background-color: #292118;
}

.sidebar-nav .nav-item {
    color: #a8a29e;
    transition: color 0.15s, background-color 0.15s;
}

.sidebar-nav .nav-item:hover {
    color: #e7e5e4;
    background-color: #3d3328;
}

.sidebar-nav .nav-item.active {
    color: #fbbf24;
    background-color: rgba(217, 119, 6, 0.15);
}

/* ===== STAT CARDS ===== */
.stat-card {
    background: #ffffff;
    border: 1px solid rgba(232, 228, 221, 0.6);
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 1px 4px rgba(28, 25, 23, 0.03);
}

.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1c1917;
    line-height: 1;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: #78716c;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin-top: 0.375rem;
}

.stat-card .stat-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}

/* ===== FEATURE CARDS ===== */
.feature-card {
    background: #ffffff;
    border: 1px solid rgba(232, 228, 221, 0.5);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.2s;
}

.feature-card:hover {
    border-color: #d97706;
    box-shadow: 0 4px 20px rgba(217, 119, 6, 0.08);
    transform: translateY(-2px);
}

/* ===== ACTIVITY FEED ===== */
.activity-item {
    padding: 0.875rem 0.75rem;
    border-radius: 0.75rem;
    transition: background-color 0.15s;
    margin-bottom: 0.125rem;
}

.activity-item:hover {
    background-color: #f5f3ef;
}

/* ===== CONVERSATION ITEMS ===== */
.conversation-item {
    transition: all 0.15s ease;
    border-radius: 0.75rem;
    padding: 0.625rem 0.75rem;
}

.conversation-item:hover {
    background-color: #f5f3ef;
}

.conversation-item.active {
    background-color: #fef3c7;
    border-left: 3px solid #d97706;
    padding-left: calc(0.75rem - 3px);
}

/* ===== MESSAGE BUBBLES ===== */
.msg-bubble-other {
    background-color: #f5f3ef;
    color: #1c1917;
    border-radius: 1.125rem 1.125rem 1.125rem 0.375rem;
    padding: 0.75rem 1rem;
}

.msg-bubble-self {
    background-color: #fef3c7;
    color: #1c1917;
    border-radius: 1.125rem 1.125rem 0.375rem 1.125rem;
    padding: 0.75rem 1rem;
}

.msg-bubble-ai {
    background-color: #fffbeb;
    border: 1px solid rgba(253, 230, 138, 0.6);
    color: #1c1917;
    border-radius: 1.125rem 1.125rem 1.125rem 0.375rem;
    padding: 0.75rem 1rem;
}

/* ===== DATE SEPARATOR ===== */
.date-separator {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0;
}

.date-separator::before,
.date-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: rgba(232, 228, 221, 0.7);
}

.date-separator span {
    font-size: 0.75rem;
    font-weight: 500;
    color: #a8a29e;
    white-space: nowrap;
}

/* ===== SECTION LABELS ===== */
.section-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #a8a29e;
    padding: 0.875rem 1rem 0.375rem;
}

/* ===== UNREAD BADGE ===== */
.unread-badge {
    background-color: #d97706;
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    min-width: 1.25rem;
    height: 1.25rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.35rem;
}

/* ===== SENDER AVATAR — ROUND ===== */
.msg-sender-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    background-color: #fef3c7;
    color: #92400e;
    flex-shrink: 0;
}

/* ===== CONVERSATIONS PANEL — SOFTER ===== */
.conversations-panel {
    border-right: 1px solid rgba(232, 228, 221, 0.5) !important;
}

/* ===== CHAT HEADER — SOFTER ===== */
.chat-header {
    border-bottom: 1px solid rgba(232, 228, 221, 0.5) !important;
}

/* ===== COMPOSE AREA — SOFTER ===== */
.chat-compose {
    border-top: 1px solid rgba(232, 228, 221, 0.5) !important;
}

/* ===== PAGINATION — SOFTER ===== */
#paginationBar {
    border-top: 1px solid rgba(232, 228, 221, 0.5) !important;
}

#paginationBar button {
    border-radius: 0.5rem;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d4cfc7; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #a8a29e; }
