/* ═══════════════════════════════════════
   BioLoc — Custom CSS
   Glassmorphism, neon accents, animations
   ═══════════════════════════════════════ */

/* ─── Base ─── */
* { box-sizing: border-box; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ─── Glassmorphism ─── */
.glass {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.12);
}

.glass-card {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 1rem;
}

.glass-card:hover {
    border-color: rgba(99, 102, 241, 0.2);
}

/* ─── Neon Effects ─── */
.neon-glow {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.12),
                0 0 60px rgba(99, 102, 241, 0.04);
}

.neon-text {
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.5),
                 0 0 20px rgba(99, 102, 241, 0.3);
}

.neon-border {
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: inset 0 0 10px rgba(99, 102, 241, 0.05);
}

/* ─── Buttons ─── */
.btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 0.625rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ─── Animations ─── */
.animate-fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-slide-up {
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

.animate-pulse-slow {
    animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ─── Loading Skeleton ─── */
.loading-skeleton {
    background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 0.5rem;
}

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

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #0f172a; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }

/* ─── Form Focus States ─── */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

/* ─── Table ─── */
table th { white-space: nowrap; }
table td { vertical-align: middle; }

/* ─── Stat Cards ─── */
.stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.12);
}

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

/* ─── Drag & Drop Zone ─── */
.drag-active {
    border-color: #818cf8 !important;
    background-color: rgba(99, 102, 241, 0.05) !important;
}

/* ─── Print ─── */
@media print {
    .glass, .glass-card { background: white !important; backdrop-filter: none !important; border-color: #e2e8f0 !important; }
    body { background: white !important; color: #1e293b !important; }
}
