/* ZBAU CRM - Professional Design System */

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Scrollbar
   ============================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

aside ::-webkit-scrollbar { width: 3px; }
aside ::-webkit-scrollbar-thumb { background: #e5e7eb; }

/* ============================================
   Glass Effect
   ============================================ */
.glass {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ============================================
   Modern Shadows
   ============================================ */
.modern-shadow {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04),
                0 1px 2px 0 rgba(0, 0, 0, 0.02);
}

.modern-shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05),
                0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.modern-shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.06),
                0 4px 6px -2px rgba(0, 0, 0, 0.03);
}

.modern-shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08),
                0 10px 10px -5px rgba(0, 0, 0, 0.03);
}

/* ============================================
   Premium Card
   ============================================ */
.premium-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04),
                0 1px 2px 0 rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.premium-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08),
                0 10px 10px -5px rgba(0, 0, 0, 0.03);
}

/* ============================================
   Blur Bloom Effect (colored orb on cards)
   ============================================ */
.blur-bloom {
    position: absolute;
    border-radius: 9999px;
    filter: blur(40px);
    opacity: 0.12;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.group:hover .blur-bloom,
.premium-card:hover .blur-bloom {
    transform: scale(1.5);
    opacity: 0.22;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shrink {
    from { width: 100%; }
    to { width: 0%; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeIn 0.3s ease-out; }
.slide-up { animation: slideUp 0.4s ease-out; }
.animate-shrink { animation: shrink 5s linear forwards; }

/* Staggered card animation */
.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }

/* ============================================
   Selection & Focus
   ============================================ */
::selection { background: rgba(37, 99, 235, 0.15); }

:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================
   Sidebar active indicator
   ============================================ */
.nav-active-indicator {
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    background: linear-gradient(to bottom, #3b82f6, #6366f1);
    border-radius: 0 3px 3px 0;
}

/* ============================================
   Gradient icon badges
   ============================================ */
.icon-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #ffffff;
    flex-shrink: 0;
}

.icon-badge-sm {
    width: 32px;
    height: 32px;
    font-size: 13px;
}

.icon-badge-md {
    width: 40px;
    height: 40px;
    font-size: 15px;
}

/* ============================================
   Widget container
   ============================================ */
.widget-container {
    background-color: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04),
                0 1px 2px 0 rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* ============================================
   Print
   ============================================ */
@media print {
    aside, header, .no-print { display: none !important; }
    main { margin: 0 !important; padding: 0 !important; }
}
