/* Tackly Premium B2B SaaS Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --bgPrimary: #0A0A0A;
    --bgSecondary: #111111;
    --bgElevated: #1A1A1A;
    --bordercolor: #1F1F1F;
    --borderHover: #2A2A2A;
    --textPrimary: #EDEDED;
    --textSecondary: #A1A1A1;
    --textTertiary: #555555;
    --accent: #3B82F6;
    --accentHover: #2563EB;
    --success: #22C55E;
    --warning: #F59E0B;
    --danger: #EF4444;
}

body {
    background-color: var(--bgPrimary);
    color: var(--textPrimary);
    margin: 0;
    padding: 0;
}

.hidden {
    display: none !important;
}

.bg-bgPrimary { background-color: var(--bgPrimary); }
.bg-bgSecondary { background-color: var(--bgSecondary); }
.bg-bgElevated { background-color: var(--bgElevated); }
.text-textPrimary { color: var(--textPrimary); }
.text-textSecondary { color: var(--textSecondary); }
.text-textTertiary { color: var(--textTertiary); }
.text-accent { color: var(--accent); }
.bg-accent { background-color: var(--accent); }
.border-bordercolor { border-color: var(--bordercolor); }

#login-screen {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--bgPrimary);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
}

#login-screen.hidden {
    display: none !important;
}

/* --- Scrollbar --- */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* --- Micro-Animations --- */

/* Sidebar Hover Glow */
.sidebar-item {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar-item:hover {
    background: rgba(59, 130, 246, 0.15); /* accent-muted */
    color: #EDEDED;
}
.sidebar-item.active {
    background: rgba(59, 130, 246, 0.15);
    border-left: 2px solid #3B82F6; /* accent */
    color: #EDEDED;
}

/* Bento Grid Hover */
.bento-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #1F1F1F;
}
.bento-card:hover {
    border-color: #2A2A2A;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* Illusion of Labor (OCR Upload Animation) */
/* We will define keyframes for smooth visual progression when uploading */
.ocr-scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #3B82F6;
    box-shadow: 0 0 10px #3B82F6, 0 0 20px #3B82F6;
    animation: scan 2s linear infinite;
    display: none;
}
.ocr-scanning .ocr-scanner-line {
    display: block;
}

@keyframes scan {
    0% { top: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* AI Widget Pulse */
.ai-widget-pulse {
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}
