@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
    --bg-main: #f4f7fb;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --border-soft: #e2e8f0;
    --text-dark: #0f172a;
}

body { 
    background: radial-gradient(circle at 0% 0%, #f8fafc 0%, #eff4f9 55%, #e6edf5 100%);
    font-family: 'Plus Jakarta Sans', sans-serif; 
    -webkit-tap-highlight-color: transparent; 
    color: var(--text-dark);
    margin: 0;
}

.font-mono { 
    font-family: 'JetBrains Mono', monospace; 
}

/* Smooth Fluid Keyframes */
@keyframes fadeUpSpring {
    0% { opacity: 0; transform: translateY(14px) scale(0.985); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-7px) rotate(1.5deg); }
}

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

.animate-fade-up {
    animation: fadeUpSpring 0.42s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.logo-float-wrap {
    display: inline-block;
    animation: floatSlow 4.5s ease-in-out infinite;
}

/* Shimmer Skeleton Loader */
.skeleton-shimmer {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmerSweep 1.5s infinite linear;
}

/* Login Aurora Background & Floating Orbs */
.login-aurora-bg {
    background: radial-gradient(circle at 15% 20%, #1e3a8a 0%, #0f172a 50%, #020617 100%);
}

.orb {
    position: absolute;
    border-radius: 9999px;
    filter: blur(75px);
    opacity: 0.45;
    pointer-events: none;
}

.orb-1 {
    width: 340px;
    height: 340px;
    background: #3b82f6;
    top: -80px;
    left: -80px;
    animation: floatSlow 8s ease-in-out infinite;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: #6366f1;
    bottom: -70px;
    right: -70px;
    animation: floatSlow 10s ease-in-out infinite reverse;
}

.login-glass-card {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(24px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.input-icon-left {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.badge-pill-primary {
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #2563eb;
    background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 100%);
    border: 1px solid #bfdbfe;
    padding: 5px 14px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
}

/* Header & Unified Navigation */
.enterprise-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 4px 24px -6px rgba(15, 23, 42, 0.05);
}

.nav-util-btn {
    padding: 6.5px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.nav-util-btn:hover {
    transform: translateY(-1px);
}

.workspace-tab {
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    color: #475569;
    background: transparent;
    cursor: pointer;
}

.workspace-tab:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.workspace-tab.active {
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    color: #ffffff;
    box-shadow: 0 6px 16px -3px rgba(37, 99, 235, 0.35);
}

/* Panels & Cards */
.enterprise-panel {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 24px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 12px 32px -12px rgba(15, 23, 42, 0.06);
}

.section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1.5px solid #f1f5f9;
}

.step-badge {
    width: 26px;
    height: 26px;
    border-radius: 9px;
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.28);
}

.section-title {
    font-size: 13px;
    font-weight: 800;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Inputs & Buttons */
.form-label {
    font-size: 11.5px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 5px;
    display: block;
}

.pro-input { 
    background: #ffffff; 
    border: 1.5px solid #cbd5e1; 
    border-radius: 14px; 
    padding: 10.5px 14px; 
    outline: none; 
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1); 
    width: 100%; 
    font-size: 13.5px; 
    color: #0f172a;
}

.pro-input:focus { 
    border-color: #2563eb; 
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.13); 
    transform: translateY(-0.5px);
}

.pro-input:read-only {
    background: #f8fafc;
    color: #475569;
}

.pro-btn { 
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%); 
    color: white; 
    border-radius: 15px; 
    padding: 13.5px 20px; 
    font-weight: 800; 
    font-size: 14px; 
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1); 
    text-align: center; 
    cursor: pointer; 
    border: none;
    box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.38);
}

.pro-btn:hover { 
    opacity: 0.97; 
    transform: translateY(-1.5px); 
    box-shadow: 0 12px 24px -4px rgba(37, 99, 235, 0.45);
}

.pro-btn:active { 
    transform: scale(0.98); 
}

/* KPI Cards */
.kpi-card {
    background: #ffffff;
    padding: 13px 15px;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.03);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(15, 23, 42, 0.08);
}

.kpi-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: block;
}

.kpi-value {
    font-size: 20px;
    font-weight: 800;
    margin-top: 3px;
    line-height: 1.2;
}

/* Filter Pills */
.filter-pill {
    padding: 6.5px 15px;
    border-radius: 9999px;
    background: #f1f5f9;
    color: #475569;
    white-space: nowrap;
    transition: all 0.22s ease;
    cursor: pointer;
}

.filter-pill:hover {
    background: #e2e8f0;
}

.filter-pill.active {
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.22);
}

/* Photo Upload Cards */
.photo-card { 
    position: relative; 
    width: 100%; 
    height: 135px; 
    border: 2px dashed #cbd5e1; 
    border-radius: 18px; 
    background: #f8fafc; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    overflow: hidden; 
    cursor: pointer; 
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1); 
    user-select: none;
}

@media (min-width: 640px) {
    .photo-card { height: 160px; }
    .kpi-value { font-size: 24px; }
}

.photo-card:hover { 
    border-color: #2563eb; 
    background: #eff6ff; 
    transform: translateY(-2px);
}

.photo-card img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    position: absolute; 
    top: 0; 
    left: 0; 
    display: none; 
    z-index: 10; 
}

.photo-badge {
    position: absolute;
    bottom: 6px;
    left: 6px;
    right: 6px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 9.5px;
    font-weight: 700;
    padding: 3.5px 6px;
    border-radius: 8px;
    z-index: 20;
    text-align: center;
    display: none;
}

.required::after { 
    content: " *"; 
    color: #ef4444; 
    font-weight: bold; 
}

#viewerStage {
    touch-action: none;
}

.no-scrollbar::-webkit-scrollbar { display: none; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 9999px; }
