/* ==============================================
   Disco Cowboy Hat — Custom Stylesheet
   (Supplement to Tailwind CDN)
   ============================================== */

/* ── Particles ─────────────────────────────── */
.particle {
    position: absolute;
    border-radius: 50%;
    animation: dc-float linear infinite;
    pointer-events: none;
}

@keyframes dc-float {
    0%   { transform: translateY(0) translateX(0); opacity: 0.6; }
    25%  { transform: translateY(-30px) translateX(12px); opacity: 0.35; }
    50%  { transform: translateY(-18px) translateX(-10px); opacity: 0.7; }
    75%  { transform: translateY(-42px) translateX(6px); opacity: 0.3; }
    100% { transform: translateY(0) translateX(0); opacity: 0.6; }
}

/* ── Toast Notifications ────────────────────── */
#toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 22rem;
    width: 100%;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid;
    pointer-events: auto;
    animation: dc-toast-in 0.3s ease-out forwards;
    box-shadow: 0 10px 40px rgba(0,0,0,0.45);
    backdrop-filter: blur(8px);
}

@keyframes dc-toast-in {
    from { transform: translateY(16px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.toast-success {
    background: rgba(16,185,129,0.12);
    border-color: rgba(16,185,129,0.35);
    color: #6ee7b7;
}

.toast-error {
    background: rgba(239,68,68,0.12);
    border-color: rgba(239,68,68,0.35);
    color: #fca5a5;
}

.toast-info {
    background: rgba(139,92,246,0.12);
    border-color: rgba(139,92,246,0.35);
    color: #c4b5fd;
}

/* ── Range input accent ─────────────────────── */
input[type="range"] {
    accent-color: #d946ef;
}

/* ── Smooth scroll ──────────────────────────── */
html {
    scroll-behavior: smooth;
}

/* ── Scrollbar styling ──────────────────────── */
::-webkit-scrollbar         { width: 6px; }
::-webkit-scrollbar-track   { background: #171717; }
::-webkit-scrollbar-thumb   { background: #404040; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #d946ef; }

/* ── Focus ring ─────────────────────────────── */
:focus-visible {
    outline: 2px solid #d946ef;
    outline-offset: 2px;
}

/* ── Light mode ─────────────────────────────── */
html.light-mode body {
    background: linear-gradient(180deg, #fafafa 0%, #f0f0f0 100%);
    color: #171717;
}
html.light-mode header {
    background: rgba(250,250,250,0.85) !important;
    border-bottom-color: rgba(0,0,0,0.1) !important;
}
html.light-mode .text-neutral-400 { color: #525252; }
html.light-mode .text-neutral-500 { color: #737373; }

/* ── Password strength bar ──────────────────── */
.strength-bar {
    height: 4px;
    border-radius: 2px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

/* ── Auth pages: gradient body override ─────── */
.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at top, rgba(217,70,239,0.15) 0%, transparent 60%),
                linear-gradient(180deg, #0a0a0a 0%, #171717 100%);
}

/* ── Page header offset ─────────────────────── */
.page-content { padding-top: 4rem; }

/* ── Admin / dashboard table ────────────────── */
.dc-table { border-collapse: collapse; width: 100%; }
.dc-table th, .dc-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #262626;
    font-size: 0.875rem;
}
.dc-table thead th {
    background: #1c1c1c;
    color: #a3a3a3;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
}
.dc-table tbody tr:hover { background: rgba(255,255,255,0.03); }

/* ── Status badges ──────────────────────────── */
.badge-active   { background: rgba(16,185,129,0.15); color:#6ee7b7; }
.badge-pending  { background: rgba(245,158,11,0.15);  color:#fcd34d; }
.badge-inactive { background: rgba(239,68,68,0.15);   color:#fca5a5; }
.badge-base     { padding: 0.2rem 0.6rem; border-radius: 9999px; font-size:0.75rem; font-weight:600; }

/* ── Responsive images ──────────────────────── */
img { max-width: 100%; height: auto; }
