/* Custom styles & luxury wedding aesthetic */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --gold-primary: #D4AF37;
    --gold-light: #F3E5AB;
    --gold-dark: #AA7C11;
    --bg-dark: #080D1A;
    --card-dark: #0F172A;
    --card-border: #1E2B47;
    --sidebar-width-expanded: 260px;
    --sidebar-width-collapsed: 78px;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #080D1A;
    color: #E2E8F0;
    overflow-x: hidden;
}

.font-serif-luxury {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

/* Glassmorphism elements */
.glass-panel {
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(212, 175, 55, 0.16);
}

.glass-card {
    background: rgba(13, 20, 36, 0.82);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: all 0.25s ease-in-out;
}

.glass-card:hover {
    border-color: rgba(212, 175, 55, 0.35);
    box-shadow: 0 10px 25px -5px rgba(212, 175, 55, 0.12);
}

/* Gold Gradient Accents */
.gold-gradient-text {
    background: linear-gradient(135deg, #F9E79F 0%, #D4AF37 50%, #B78727 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gold-gradient-border {
    border-image: linear-gradient(to right, #D4AF37, #F9E79F, #AA7C11) 1;
}

.gold-btn {
    background: linear-gradient(135deg, #D4AF37 0%, #B78727 100%);
    color: #0A0F1D;
    font-weight: 600;
    transition: all 0.2s ease;
}

.gold-btn:hover {
    background: linear-gradient(135deg, #E5C358 0%, #C99732 100%);
    box-shadow: 0 4px 18px rgba(212, 175, 55, 0.38);
    transform: translateY(-1px);
}

/* -------------------------------------------------------------
   GOOGLE & META INSPIRED LOADING SCREEN SYSTEM
   ------------------------------------------------------------- */
/* 1. Top Indeterminate Nano-Progress Bar */
#top-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #B78727, #D4AF37, #FDE68A, #D4AF37);
    background-size: 200% 100%;
    z-index: 99999;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.8), 0 0 5px rgba(245, 230, 138, 0.5);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    pointer-events: none;
}

@keyframes progress-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.anim-progress-shimmer {
    animation: progress-shimmer 1.5s infinite linear;
}

/* 2. Concentric Orbiting Rings Loading Animation */
@keyframes celestial-orbit-outer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes celestial-orbit-inner {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

@keyframes jewel-pulse {
    0%, 100% { transform: scale(0.95); opacity: 0.85; filter: drop-shadow(0 0 8px rgba(212,175,55,0.6)); }
    50% { transform: scale(1.1); opacity: 1; filter: drop-shadow(0 0 20px rgba(212,175,55,1)); }
}

.celestial-ring-outer {
    animation: celestial-orbit-outer 2.8s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.celestial-ring-inner {
    animation: celestial-orbit-inner 2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.jewel-pulse {
    animation: jewel-pulse 1.8s ease-in-out infinite;
}

/* 3. Skeleton Loading Shimmer */
@keyframes skeleton-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton-shimmer {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 25%, rgba(212, 175, 55, 0.08) 50%, rgba(255, 255, 255, 0.03) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.6s infinite ease-in-out;
}

/* -------------------------------------------------------------
   COLLAPSIBLE SIDEBAR SYSTEM
   ------------------------------------------------------------- */
#sidebar {
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-expanded {
    width: var(--sidebar-width-expanded);
}

.sidebar-collapsed {
    width: var(--sidebar-width-collapsed);
}

.sidebar-collapsed .sidebar-text {
    display: none !important;
}

.sidebar-collapsed .sidebar-badge {
    display: none !important;
}

.sidebar-collapsed .sidebar-header-full {
    display: none !important;
}

.sidebar-collapsed .sidebar-header-mini {
    display: flex !important;
}

.sidebar-collapsed .sidebar-item-link {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

.sidebar-collapsed .sidebar-user-details {
    display: none !important;
}

.sidebar-expanded .sidebar-header-mini {
    display: none !important;
}

/* Tooltips when collapsed */
.sidebar-collapsed .sidebar-item:hover .sidebar-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.sidebar-tooltip {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-6px);
    transition: all 0.2s ease;
}

/* Content Area transition with sidebar */
#main-content {
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scanner viewport frame */
#reader {
    width: 100% !important;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(212, 175, 55, 0.4) !important;
    background: #000;
}

#reader video {
    border-radius: 10px;
    object-fit: cover;
}

/* Pulsing scanner animation */
@keyframes scanline {
    0% { top: 0%; opacity: 0.8; }
    50% { opacity: 1; }
    100% { top: 95%; opacity: 0.8; }
}

.scanner-overlay {
    position: relative;
    overflow: hidden;
}

.scanner-laser {
    position: absolute;
    left: 5%;
    width: 90%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #22C55E, #10B981, transparent);
    box-shadow: 0 0 12px #10B981, 0 0 20px #22C55E;
    animation: scanline 2.2s infinite ease-in-out alternate;
    pointer-events: none;
    z-index: 10;
}

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

::-webkit-scrollbar-track {
    background: #080D1A;
}

::-webkit-scrollbar-thumb {
    background: #1E293B;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #334155;
}
