/* Stint Admin - Modern Theme - Matching Main Website */

/* ===== CSS Variables ===== */
:root {
    /* Stint Brand Colors */
    --stint-yellow: #E4FE00;
    --stint-yellow-bright: #F0FF33;
    --dark-teal: #006b60;
    --medium-teal: #649b92;
    --light-cyan: #c3fcf2;

    /* Backgrounds */
    --bg-dark-1: #3B3B3B;
    --bg-dark-2: #292929;
    --bg-darker: #1a1a1a;
    --bg-black: #0a0a0a;

    /* Typography */
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;

    /* Effects */
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Base Styles ===== */
body {
    background: var(--bg-black) !important;
    color: var(--text-primary) !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
}

/* Racing Grid Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, rgba(228, 254, 0, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(228, 254, 0, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at top, rgba(0, 107, 96, 0.15), transparent 50%),
                radial-gradient(ellipse at bottom, rgba(228, 254, 0, 0.08), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Ensure content is above background */
nav, .max-w-7xl, .max-w-md, .max-w-4xl {
    position: relative;
    z-index: 1;
}

/* ===== Cards & Containers ===== */
.bg-gray-800 {
    background: rgba(59, 59, 59, 0.6) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(228, 254, 0, 0.15) !important;
}

.bg-gray-800:hover {
    border-color: rgba(228, 254, 0, 0.3) !important;
    box-shadow: 0 8px 32px rgba(0, 107, 96, 0.2);
    transition: all 0.3s var(--transition-smooth);
}

.bg-gray-900 {
    background: rgba(26, 26, 26, 0.8) !important;
    backdrop-filter: blur(10px);
}

.bg-gray-700 {
    background: rgba(41, 41, 41, 0.8) !important;
}

/* ===== Navigation ===== */
nav {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 2px solid rgba(228, 254, 0, 0.2) !important;
}

.bg-gray-700:hover {
    background: rgba(0, 107, 96, 0.3) !important;
}

/* ===== Buttons & Links ===== */
.bg-red-600, .bg-red-500, .bg-red-700 {
    background: linear-gradient(135deg, rgba(0, 107, 96, 0.8), rgba(100, 155, 146, 0.6)) !important;
    border: 2px solid var(--stint-yellow) !important;
    box-shadow: 0 4px 15px rgba(0, 107, 96, 0.3) !important;
    color: var(--stint-yellow) !important;
    font-weight: 600;
}

.bg-red-600:hover, .bg-red-700:hover {
    background: linear-gradient(135deg, rgba(0, 107, 96, 1), rgba(100, 155, 146, 0.8)) !important;
    box-shadow: 0 6px 20px rgba(228, 254, 0, 0.3) !important;
    transform: translateY(-2px);
}

button, .button {
    transition: all 0.3s var(--transition-smooth);
}

/* Text Links */
.text-red-400, .text-red-500, .text-red-300 {
    color: var(--stint-yellow) !important;
}

.text-red-400:hover, .text-red-500:hover {
    color: var(--stint-yellow-bright) !important;
    text-shadow: 0 0 10px rgba(228, 254, 0, 0.3);
}

/* ===== Forms & Inputs ===== */
input, textarea, select {
    background: rgba(10, 10, 10, 0.8) !important;
    border-color: rgba(228, 254, 0, 0.2) !important;
    color: var(--text-primary) !important;
    transition: all 0.3s var(--transition-smooth);
}

input:focus, textarea:focus, select:focus {
    background: rgba(10, 10, 10, 0.95) !important;
    border-color: var(--stint-yellow) !important;
    box-shadow: 0 0 15px rgba(228, 254, 0, 0.2);
    outline: none;
}

input::placeholder {
    color: var(--text-muted) !important;
}

.border-gray-600 {
    border-color: rgba(228, 254, 0, 0.2) !important;
}

.focus\:border-red-500:focus {
    border-color: var(--stint-yellow) !important;
}

/* ===== Status Badges ===== */
.bg-green-500\/20, .bg-green-500\/20 {
    background: rgba(228, 254, 0, 0.15) !important;
    border: 1px solid rgba(228, 254, 0, 0.3);
}

.text-green-400 {
    color: var(--stint-yellow) !important;
}

.bg-yellow-500\/20, .bg-yellow-500\/20 {
    background: rgba(228, 254, 0, 0.1) !important;
    border: 1px solid rgba(228, 254, 0, 0.2);
}

.text-yellow-400 {
    color: var(--stint-yellow-bright) !important;
}

/* ===== Tables ===== */
table {
    backdrop-filter: blur(5px);
}

thead tr {
    background: rgba(10, 10, 10, 0.8) !important;
    border-bottom: 2px solid rgba(228, 254, 0, 0.2) !important;
}

tbody tr {
    border-bottom: 1px solid rgba(228, 254, 0, 0.1) !important;
}

tbody tr:hover {
    background: rgba(0, 107, 96, 0.15) !important;
    transition: all 0.2s var(--transition-smooth);
}

.border-gray-700 {
    border-color: rgba(228, 254, 0, 0.1) !important;
}

/* ===== Text Colors ===== */
.text-gray-300 {
    color: var(--text-secondary) !important;
}

.text-gray-400 {
    color: var(--text-muted) !important;
}

.text-white {
    color: var(--text-primary) !important;
}

/* ===== Alerts & Messages ===== */
.bg-red-500\/10, .bg-red-500\/10 {
    background: rgba(228, 254, 0, 0.1) !important;
    border-color: var(--stint-yellow) !important;
}

.border-red-500 {
    border-color: var(--stint-yellow) !important;
}

/* ===== Stats Cards Enhancement ===== */
.text-4xl {
    filter: drop-shadow(0 0 10px rgba(228, 254, 0, 0.3));
}

/* ===== Animations ===== */
@keyframes glow {
    0%, 100% { 
        box-shadow: 0 0 5px rgba(228, 254, 0, 0.2); 
    }
    50% { 
        box-shadow: 0 0 20px rgba(228, 254, 0, 0.4); 
    }
}

.bg-gray-800:hover {
    animation: glow 2s ease-in-out infinite;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--dark-teal), var(--medium-teal));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--medium-teal), var(--stint-yellow));
}
