/* =========================================
   Techware Hub - Burgundy Black Theme
   ========================================= */

:root {
    --accent: #8b1a2e;
    --accent-light: #a82038;
    --accent-glow: rgba(139, 26, 46, 0.25);
    --accent-glow-sm: rgba(139, 26, 46, 0.15);
}

body {
    background-color: #0a0608;
    color: #e2e8f0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* --- Card & Container --- */
.card-hover { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px var(--accent-glow);
    border-color: var(--accent);
}

/* --- Input Fields --- */
.input-field {
    width: 100%;
    background-color: #1a0c0e !important;
    border: 1px solid #3a1520;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    color: #ffffff !important;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s ease-in-out;
    appearance: none;
}
.input-field:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow-sm);
    background-color: #1a0c0e;
}
.input-field::placeholder { color: #94a3b8; }

/* Select Arrow Fix */
select.input-field {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Autofill Fix */
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #1a0c0e inset !important;
    -webkit-text-fill-color: white !important;
    caret-color: white;
    transition: background-color 5000s ease-in-out 0s;
}

/* --- TOAST NOTIFICATION --- */
.toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #10b981;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 16px;
    position: fixed;
    z-index: 100;
    left: 50%;
    top: 30px;
    transform: translateX(-50%);
    font-size: 17px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s, top 0.3s;
}
.toast.show { visibility: visible; opacity: 1; top: 50px; }
.toast.error { background-color: #ef4444; }

/* --- PENDING CARD STYLES --- */
.pending-card {
    background: #150810;
    border: 1px solid #3a1520;
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.2s;
}
.pending-card:hover { transform: scale(1.01); border-color: var(--accent); }

/* --- CHAT WIDGET STYLES --- */
#chatMessages {
    overflow-y: auto;
    max-height: 20rem;
    scrollbar-width: thin;
    scrollbar-color: #3a1520 #150810;
}
#chatMessages::-webkit-scrollbar { width: 6px; }
#chatMessages::-webkit-scrollbar-track { background: #150810; }
#chatMessages::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* --- TABLE EDITABLE CELLS --- */
td[contenteditable="true"]:hover {
    background-color: rgba(255, 255, 255, 0.1);
    cursor: text;
    border-radius: 4px;
}
td[contenteditable="true"]:focus {
    background-color: rgba(255, 255, 255, 0.2);
    outline: 2px solid var(--accent);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up { animation: fadeInUp 0.3s ease-out forwards; }

/* =========================================
   BURGUNDY TAILWIND OVERRIDES
   ========================================= */

/* Blue backgrounds → burgundy */
.bg-blue-600,
.bg-blue-700 { background-color: var(--accent) !important; }
.bg-blue-500 { background-color: var(--accent-light) !important; }
.hover\:bg-blue-500:hover,
.hover\:bg-blue-600:hover { background-color: var(--accent-light) !important; }

/* Blue borders → burgundy */
.border-blue-500,
.border-blue-600 { border-color: var(--accent) !important; }
.focus\:border-blue-500:focus { border-color: var(--accent) !important; }

/* Blue text → burgundy-light */
.text-blue-400,
.text-blue-500,
.text-blue-600 { color: #c94b60 !important; }

/* Blue shadows → burgundy */
.shadow-blue-500\/20 { --tw-shadow-color: var(--accent-glow) !important; }
.shadow-blue-900\/20 { --tw-shadow-color: rgba(139, 26, 46, 0.2) !important; }

/* Blue ring/focus ring → burgundy */
.focus\:ring-blue-500:focus { --tw-ring-color: var(--accent) !important; }

/* Slate backgrounds → dark burgundy-black */
.bg-slate-900 { background-color: #0e0609 !important; }
.bg-slate-800 { background-color: #150810 !important; }
.bg-slate-800\/50 { background-color: rgba(21, 8, 16, 0.5) !important; }
.bg-slate-900\/90 { background-color: rgba(14, 6, 9, 0.9) !important; }

/* Slate borders → burgundy-tinted */
.border-slate-700 { border-color: #2e1018 !important; }
.border-slate-600 { border-color: #3a1520 !important; }

/* Scrollbar */
.scrollbar-thumb-slate-700 { --tw-scrollbar-thumb: var(--accent) !important; }
