:root {
    --erapor-green: #10b981;
    --erapor-blue: #2563eb;
    --erapor-cyan: #06b6d4;
    --erapor-ink: #0f172a;
    --erapor-muted: #64748b;
    --erapor-surface: #ffffff;
    --erapor-bg: #f4f8f7;
}

html { scroll-behavior: smooth; }
body { min-width: 320px; background: var(--erapor-bg); }

@keyframes eraporFadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes eraporFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
@keyframes eraporShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.erapor-page-content { animation: eraporFadeUp .35s ease both; }
.erapor-gradient {
    background: linear-gradient(135deg, var(--erapor-green) 0%, var(--erapor-cyan) 48%, var(--erapor-blue) 100%);
    background-size: 180% 180%;
    animation: eraporShimmer 10s ease infinite;
}
.erapor-gradient-soft { background: linear-gradient(135deg, rgba(16,185,129,.12), rgba(37,99,235,.12)); }
.erapor-glow { box-shadow: 0 20px 55px rgba(37, 99, 235, .12), 0 8px 25px rgba(16, 185, 129, .08); }
.erapor-float { animation: eraporFloat 5s ease-in-out infinite; }

/* Theme common Tailwind surfaces without requiring a rewrite of every existing view. */
.bg-slate-950 { background: linear-gradient(180deg, #06251f 0%, #071a2d 52%, #08152a 100%) !important; }
.bg-slate-900 { background: linear-gradient(135deg, #059669 0%, #0ea5a4 45%, #2563eb 100%) !important; }
.bg-blue-600 { background: linear-gradient(135deg, #10b981 0%, #2563eb 100%) !important; }
.bg-blue-500 { background-color: #0ea5a4 !important; }
.text-blue-600 { color: #0f766e !important; }
.text-blue-500 { color: #0f766e !important; }
.border-blue-300 { border-color: rgba(16,185,129,.45) !important; }
.focus\:border-blue-500:focus { border-color: #10b981 !important; }
.focus\:ring-blue-500\/10:focus { --tw-ring-color: rgba(16,185,129,.10) !important; }

/* Cards, tables, forms and links get a consistent visual language. */
main table { border-collapse: separate; border-spacing: 0; }
main table thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .045em; color: #64748b; font-weight: 700; }
main table tbody tr { transition: background-color .18s ease, transform .18s ease; }
main table tbody tr:hover { background: rgba(16,185,129,.035); }
main input:not([type="checkbox"]):not([type="radio"]),
main select,
main textarea {
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
main input:not([type="checkbox"]):not([type="radio"]):focus,
main select:focus,
main textarea:focus {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 4px rgba(16,185,129,.10) !important;
    outline: none;
}
main a, main button { transition: all .18s ease; }
main a.bg-slate-900:hover, main button.bg-slate-900:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(37,99,235,.16); }

/* Rounded white blocks used throughout the existing pages. */
main .bg-white.rounded-xl,
main .bg-white.rounded-2xl,
main .bg-white.rounded-3xl {
    box-shadow: 0 10px 35px rgba(15,23,42,.045);
}

/* Mobile tables remain usable without breaking the layout. */
.erapor-table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (max-width: 767px) {
    main { min-width: 0; }
    main table { min-width: 680px; }
    main .overflow-x-auto { border-radius: 1rem; }
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #e2e8f0; }
::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #64748b; }

/* Login-specific helpers. */
.erapor-login-bg {
    background:
        radial-gradient(circle at 15% 20%, rgba(16,185,129,.24), transparent 28%),
        radial-gradient(circle at 85% 80%, rgba(37,99,235,.24), transparent 30%),
        linear-gradient(135deg, #031b17 0%, #062b37 50%, #071d3a 100%);
}
.erapor-login-card { box-shadow: 0 25px 80px rgba(15,23,42,.12); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
