:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #64748b;
    --accent: #3b82f6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --bg-main: #f8fafc;
    --sidebar-bg: #0f172a;
    --card-shadow: 0 4px 20px -5px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --premium-blue: #3b82f6;
    --premium-slate: #1e293b;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.6);
}

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

body {
    -webkit-font-smoothing: antialiased;
}

.font-inter {
    font-family: 'Inter', sans-serif;
}

.font-outfit {
    font-family: 'Outfit', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

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

.animate-fade-in {
    animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slide-right {
    animation: slideRight 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* UI Components */
.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -5px rgb(0 0 0 / 0.05);
    border-color: var(--primary);
}

.table-row {
    transition: background-color 0.2s ease;
}

.table-row:hover {
    background-color: #f1f5f9;
}

/* Active Nav State */
.active-nav {
    background: rgba(37, 99, 235, 0.1) !important;
    color: var(--primary) !important;
    border: 1px solid rgba(37, 99, 235, 0.2) !important;
}

.active-nav i {
    color: var(--primary) !important;
}

/* Modal Styling */
.modal-overlay {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 0.5rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 6px -1px var(--primary);
}

.btn-ghost {
    background: transparent;
    color: var(--secondary);
    padding: 0.6rem 1.2rem;
    border-radius: 0.5rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-ghost:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* Insights Panel */
.insight-card {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    border-left: 4px solid var(--primary);
}

/* Custom Scrollbar for Sidebar */
#folder-tree::-webkit-scrollbar {
    width: 4px;
}

#folder-tree::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 4px;
}

/* Tree Navigation Transitions */
.hidden {
    display: none !important;
}

.animate-slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

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

/* Shadow utilities */
/* Glassmorphism Classes */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
}

.drop-zone-premium {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, rgba(59, 130, 246, 0.01) 100%);
    border: 2px dashed rgba(37, 99, 235, 0.2);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.drop-zone-premium:hover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
    transform: translateY(-2px);
}

/* Sidebar Row Polish */
.sidebar-link-premium {
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 12px;
}

.sidebar-link-premium:hover {
    background: rgba(37, 99, 235, 0.05);
    padding-left: 1.25rem !important;
}

/* Table Row Polish */
.table-row-premium {
    transition: transform 0.2s, background-color 0.2s;
}

.table-row-premium:hover {
    transform: scale(1.002);
    background-color: #f8fafc;
    box-shadow: 0 4px 12px -5px rgba(0, 0, 0, 0.05);
}

/* Modal Internal Buttons */
.btn-dark-modal {
    background: var(--sidebar-bg);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 14px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.3);
}

.btn-dark-modal:hover {
    transform: translateY(-2px);
    background: #1e293b;
    box-shadow: 0 15px 25px -5px rgba(15, 23, 42, 0.4);
}

.btn-secondary-soft {
    background: #f1f5f9;
    color: #475569;
    padding: 0.75rem 1.5rem;
    border-radius: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-secondary-soft:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.shadow-premium {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

/* Drop Zone pulse */
#drop-zone:active {
    transform: scale(0.98);
}