/* --- GLOBAL & DASHBOARD BASE --- */
.material-symbols-outlined { 
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; 
    vertical-align: middle; 
}

/* Sidebar Logic */
#sidebar { 
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
    transform: translateX(-100%); 
    -webkit-overflow-scrolling: touch; /* Smooth scroll for iOS */
}
#sidebar.open { transform: translateX(0); }

/* --- THE SCROLLBAR FIX --- */
/* Target the navigation specifically to hide or minimize the bar */
nav.overflow-y-auto::-webkit-scrollbar {
    width: 4px; /* Very thin bar */
}

nav.overflow-y-auto::-webkit-scrollbar-track {
    background: transparent; 
}

nav.overflow-y-auto::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.05); /* Subtle grey thumb */
    border-radius: 10px;
}

nav.overflow-y-auto::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.1); 
}

/* Firefox Support */
nav.overflow-y-auto {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.05) transparent;
}

/* Custom Scrolling for Main Content */
.main-content-scroll { 
    height: 100vh; 
    overflow-y: auto; 
    scrollbar-width: thin; 
}

/* --- SPLASH SCREEN --- */
#splash-screen {
    background: #ffffff;
    transition: all 0.8s cubic-bezier(0.65, 0, 0.35, 1);
    overflow: hidden;
}

#splash-screen::before,
#splash-screen::after {
    content: '';
    position: absolute;
    width: 60vmax;
    height: 60vmax;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    opacity: 0.08;
    pointer-events: none;
}

#splash-screen::before {
    top: -20%;
    left: -20%;
    background: #0a3161;
    animation: meshMove 20s ease-in-out infinite alternate;
}

#splash-screen::after {
    bottom: -20%;
    right: -20%;
    background: #1d1d1d;
    animation: meshMove 25s ease-in-out infinite alternate-reverse;
}

@keyframes meshMove {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10%, 10%) scale(1.1); }
}

.breathing-logo {
    animation: breathe 3s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0px rgba(0,0,0,0)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 30px rgba(0,0,0,0.05)); }
}

.splash-hidden { 
    opacity: 0; 
    visibility: hidden; 
    transform: scale(1.05);
    filter: blur(20px);
}

/* Staggered Animations */
.splash-animate-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: var(--delay);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Shimmer Text Effect - Dark Mode for Light Background */
.shimmer-text {
    background: linear-gradient(
        90deg, 
        rgba(29,29,29,0.6) 0%, 
        rgba(29,29,29,1) 50%, 
        rgba(29,29,29,0.6) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    to { background-position: 200% center; }
}

/* --- LOADER --- */
.loader-line {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #1d1d1d, #0a3161, #1d1d1d);
    background-size: 200% 100%;
    position: relative;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: shimmer 2s linear infinite;
}

/* --- FORM SPECIFIC (Namespaced: upf-) --- */
.upf-form-step { 
    display: none; 
}

.upf-form-step.upf-active { 
    display: block; 
    animation: upfFadeIn 0.4s ease-out; 
}

.upf-form-progress-bar { 
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1); 
}

@keyframes upfFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- COUNSEL PAGE CARDS (Namespaced: csl-) --- */
.csl-lawyer-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.csl-lawyer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

.csl-badge {
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- REGISTRY PAGE SPECIFIC (Namespaced: reg-) --- */
.reg-table-row {
    transition: background-color 0.2s ease;
}

.reg-table-row:hover {
    background-color: #f8f9fa;
}

.status-flag {
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.status-flag.default {
    background-color: #ffdad6;
    color: #ba1a1a;
}

.status-flag.resolved {
    background-color: #d1e4ff;
    color: #001d36;
}

.pulse-warning {
    animation: warningPulse 1.5s ease-in-out infinite;
}

@keyframes warningPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}