/* ============================================================
   NOVEXA — Premium Custom Styles
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
    --nv-primary: #0f2d5e;
    --nv-primary-light: #1a4a8a;
    --nv-accent: #f59e0b;
    --nv-radius: 1rem;
    --nv-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
    --nv-shadow-lg: 0 4px 20px rgba(0,0,0,0.08);
}

/* ---- Form elements ---- */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1.5px solid #e5e7eb;
    background: #f9fafb;
    color: #111827;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
}
.form-input:hover { border-color: #d1d5db; background: #fff; }
.form-input:focus {
    outline: none;
    border-color: var(--nv-primary);
    box-shadow: 0 0 0 4px rgba(15, 45, 94, 0.08);
    background: #fff;
}
.form-input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08);
}
.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.375rem;
    letter-spacing: -0.01em;
}
textarea.form-input {
    resize: vertical;
    min-height: 6rem;
}
select.form-input {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

/* ---- Bottom nav ---- */
.bottom-nav-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    flex: 1; padding: 0.5rem 0.25rem; font-size: 0.68rem; color: #9ca3af;
    gap: 0.2rem; transition: color 0.15s, background 0.15s; text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    border-radius: 1rem;
    margin: 0.4rem 0.25rem;
}
.bottom-nav-item svg { width: 1.5rem; height: 1.5rem; }
.bottom-nav-item.active {
    color: var(--nv-primary);
    background: rgba(15, 45, 94, 0.08);
}
.bottom-nav-item:active { color: var(--nv-primary); }

/* ---- Scrollbar helpers ---- */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ---- Line clamp ---- */
.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---- Lazy image placeholder ---- */
.img-placeholder {
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ---- Splash screen ---- */
#splash-screen {
    position: fixed; inset: 0; z-index: 9999; background: var(--nv-primary);
    display: flex; align-items: center; justify-content: center; flex-direction: column;
    transition: opacity 0.4s ease;
}
#splash-screen.hidden { opacity: 0; pointer-events: none; }

/* ---- Countdown chip ---- */
.countdown-chip {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.03em;
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(120px) scale(0.95); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}
.animate-slide-in {
    animation: slideInRight 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   CONFIRMATION MODAL
   ============================================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.92) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.animate-fade-in  { animation: fadeIn 0.2s ease; }
.animate-scale-in { animation: scaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1); }

/* ============================================================
   BUTTON SPINNER
   ============================================================ */
.nova-btn-loading {
    cursor: not-allowed;
    opacity: 0.8;
    pointer-events: none;
}

/* ============================================================
   PREMIUM STAT CARDS (Glassmorphism gradient)
   ============================================================ */
.stat-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: var(--nv-shadow);
    transition: all 0.25s ease;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--nv-shadow-lg);
}
.stat-card::before {
    content: '';
    position: absolute;
    top: -30%; right: -20%;
    width: 120px; height: 120px;
    border-radius: 50%;
    opacity: 0.08;
    pointer-events: none;
}
.stat-card.card-blue::before   { background: #3b82f6; }
.stat-card.card-green::before  { background: #10b981; }
.stat-card.card-purple::before { background: #8b5cf6; }
.stat-card.card-orange::before { background: #f59e0b; }
.stat-card.card-rose::before   { background: #f43f5e; }
.stat-card.card-cyan::before   { background: #06b6d4; }
.stat-card.card-amber::before  { background: #f59e0b; }
.stat-card.card-emerald::before{ background: #10b981; }
.stat-card.card-red::before    { background: #ef4444; }

/* ============================================================
   MULTI-STEP FORM WIZARD
   ============================================================ */
.wizard-step {
    display: none;
    animation: scaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.wizard-step.active { display: block; }

.wizard-progress {
    display: flex; align-items: center; gap: 0;
    counter-reset: step;
}
.wizard-progress .step-dot {
    width: 2.25rem; height: 2.25rem;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 700;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.wizard-progress .step-dot.done {
    background: var(--nv-primary);
    color: #fff;
}
.wizard-progress .step-dot.current {
    background: var(--nv-accent);
    color: #fff;
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.15);
}
.wizard-progress .step-line {
    flex: 1; height: 3px;
    background: #e5e7eb;
    transition: background 0.4s ease;
    margin: 0 -2px;
}
.wizard-progress .step-line.done {
    background: var(--nv-primary);
}

/* Step label below dots */
.wizard-labels {
    display: flex; align-items: flex-start; gap: 0;
    margin-top: 0.4rem;
    font-size: 0.65rem;
}
.wizard-labels span {
    text-align: center;
    width: 2.25rem;
    flex-shrink: 0;
    color: #9ca3af;
    transition: color 0.3s;
    line-height: 1.2;
}
.wizard-labels span.done  { color: var(--nv-primary); font-weight: 600; }
.wizard-labels span.current { color: var(--nv-accent); font-weight: 700; }
.wizard-labels .label-spacer { flex: 1; min-width: 0; }

/* ============================================================
   ADMIN SIDEBAR — Left border highlight
   ============================================================ */
.admin-sidebar-link {
    position: relative;
    transition: all 0.2s ease;
}

/* ============================================================
   DASHBOARD CHART PLACEHOLDER
   ============================================================ */
.mini-chart {
    height: 60px;
    display: flex; align-items: flex-end; gap: 3px;
}
.mini-chart .bar {
    flex: 1;
    border-radius: 4px 4px 0 0;
    transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    min-height: 4px;
}

/* ============================================================
   SKELETON LOADING
   ============================================================ */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

/* ============================================================
   IMAGE DROP ZONE
   ============================================================ */
.drop-zone {
    border: 2px dashed #d1d5db;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    background: #fafafa;
}
.drop-zone:hover, .drop-zone.drag-over {
    border-color: var(--nv-primary);
    background: rgba(15, 45, 94, 0.03);
}

/* ============================================================
   RESPONSIVE PADDING
   ============================================================ */
.safe-area-pb { padding-bottom: env(safe-area-inset-bottom, 0px); }

/* ============================================================
   HOMEPAGE HERO
   ============================================================ */
.hero-grid {
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.045) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.045) 1px, transparent 1px);
    background-size: 52px 52px;
    background-position: center top;
}
.hero-timer {
    color: #38bdf8 !important;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}
