/* Majestic Indigo - Central Design System */

:root {
    /* Main Palette */
    --primary: #4052b6;
    --primary-container: #8899ff;
    --on-primary: #f3f1ff;
    
    --secondary: #765600;
    --secondary-container: #ffca53;
    
    --surface: #f9f5ff;
    --on-surface: #2c2a51;
    --surface-container-low: #f3eeff;
    --surface-container: #e9e5ff;
    --surface-container-high: #e3dfff;
    --surface-container-highest: #ddd9ff;
    
    --outline: #75729e;
    --outline-variant: #aca8d7;
    
    /* Animations */
    --transition-soft: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--surface);
    color: var(--on-surface);
}

h1, h2, h3, h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
}

/* Glassmorphism */
.glass {
    background: rgba(249, 245, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-effect {
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.signature-gradient {
    background: linear-gradient(135deg, #4052b6 0%, #8899ff 100%);
}

/* Sidebar Glow Effect */
.sidebar-glow {
    position: relative;
    overflow: hidden;
}

.sidebar-glow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top left, rgba(64, 82, 182, 0.05), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* Layout Components */
.sanctuary-sidebar {
    width: 288px; /* Correct width (w-72) */
    height: 100vh;
    background-color: var(--surface-container-low);
    border-radius: 0 3.5rem 3.5rem 0;
    padding: 3rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 20px 0 80px rgba(44, 42, 81, 0.03);
    z-index: 50;
}

/* Bento Grid */
.bento-card {
    background: white;
    border-radius: 2rem;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
    transition: var(--transition-soft);
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(64, 82, 182, 0.06);
}

/* Dropzone Refinement */
.drop-zone {
    border: 2px dashed var(--outline-variant);
    border-radius: 2.5rem;
    transition: var(--transition-soft);
}

.drop-zone:hover {
    border-color: var(--primary);
    background: var(--surface-container-low);
}

/* Shadow Presets */
.shadow-premium {
    box-shadow: 0 20px 50px -10px rgba(64, 82, 182, 0.15);
}

.shadow-soft {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(64, 82, 182, 0.2);
    transition: var(--transition-soft);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(64, 82, 182, 0.3);
}

/* Animations */
@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.animate-fade-in { animation: fadeIn 0.4s ease-out; }
.animate-in { animation: fadeIn 0.3s ease-out; }
.fade-in { animation: fadeIn 0.3s ease-out; }
.zoom-in { animation: zoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.animate-slide-up { animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1); }

/* Bulk Upload Grid */
.bulk-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr 0.5fr auto;
    gap: 1.5rem;
    align-items: center;
}

.bulk-row-item {
    background-color: var(--surface-container-low);
    border-radius: 1.25rem;
    padding: 1.5rem;
    transition: var(--transition-soft);
    border: 1px solid transparent;
}

.bulk-row-item:hover {
    box-shadow: 0 10px 30px rgba(44, 42, 81, 0.05);
    background-color: white;
    border-color: var(--outline-variant);
}

.bulk-row-item.active {
    border-color: var(--primary);
    background-color: white;
    box-shadow: 0 15px 40px rgba(64, 82, 182, 0.08);
}

/* Scroll Enforcement */
html {
    overflow-y: scroll !important;
}

body {
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100vh !important;
}