/* public/css/styles.css */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;700;900&display=swap');

/* ==========================================================================
   1. BASE APPLICATION STYLES
   ========================================================================== */
body { 
    font-family: 'Space Grotesk', sans-serif; 
    background-color: #0a0a0a; 
    color: #ffffff; 
    scroll-behavior: smooth; 
}

/* ==========================================================================
   2. REUSABLE BRANDING UTILITIES & EFFECTS
   ========================================================================== */
/* Reusable background linear gradient block */
.splut-gradient { 
    background: linear-gradient(90deg, #a855f7 0%, #ec4899 100%) !important; 
}

/* Beautiful text clipping gradient for massive hero headers */
.splut-gradient-text { 
    background: linear-gradient(90deg, #a855f7 0%, #ec4899 100%) !important; 
    color: transparent !important;
    -webkit-background-clip: text !important; 
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    display: inline-block;
    /* Extra right-hand padding prevents trailing italic font slants from clipping */
    padding-right: 0.15em !important;
}

.bg-clip-text { 
    padding-right: 0.15em; 
    margin-right: -0.15em;
}

/* Base custom glow layer layer styling used on cards and toggles */
.glow { 
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.25) !important; 
}

/* ==========================================================================
   3. UNIFIED INPUTS & TEXTAREAS DESIGN MATRIX
   ========================================================================== */
/* Enforces proper text alignment, internal spacing, and rigid height guidelines */
input[type="text"], 
input[type="number"], 
input[type="date"], 
select {
    height: 44px !important;
    background: #09090b !important;
    border: 1px solid #27272a !important; /* Softened to match Tailwind zinc-800 utility cards */
    color: #ffffff !important; /* Guarantees font remains crisp and legible at all times */
    padding: 0 14px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

/* Mirrors input parameters while allowing perfect vertical alignment with dual columns */
textarea {
    height: 116px !important; /* Exactly pairs with two inputs + internal layout margins */
    background: #09090b !important;
    border: 1px solid #27272a !important;
    color: #ffffff !important;
    padding: 12px 14px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.15s ease, background-color 0.15s ease;
    resize: none; /* Disables dragging to safeguard dashboard component boundaries */
}

/* ANTI-HOVER FLASHING: Strips bad browser styling default overrides on interaction */
input[type="text"]:hover,
input[type="number"]:hover,
select:hover,
textarea:hover,
input[type="text"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    background-color: #09090b !important; /* Locks background deep black */
    color: #ffffff !important;            /* Locks font crisp white */
    border-color: #a855f7 !important;     /* Smooth signature purple focus ring transition */
    outline: none !important;
}

/* ==========================================================================
   4. NUMBER INPUT SPIN ATTRIBUTE ADJUSTMENT
   ========================================================================== */
input[type="number"] {
    -moz-appearance: number-input !important;
    appearance: number-input !important;
}

/* Restores layout spin arrows while style-shifting them to fit dark theme aesthetics */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: inner-spin-button !important;
    appearance: inner-spin-button !important;
    opacity: 1 !important;
    filter: invert(1) brightness(2); /* Flips dark grey arrows into high-contrast white */
    cursor: pointer;
    margin-left: 4px;
}

/* ==========================================================================
   5. UNIFIED HIGHLIGHT TEXT SELECTION STYLES
   ========================================================================== */
input::selection,
textarea::selection,
select::selection {
    background-color: #a855f7 !important; /* Preserves signature purple highlight inside fields */
    color: #ffffff !important;
}
input::-webkit-selection, textarea::-webkit-selection, select::-webkit-selection { background: #a855f7 !important; color: #ffffff !important; }
input::-moz-selection, textarea::-moz-selection, select::-moz-selection { background: #a855f7 !important; color: #ffffff !important; }

/* ==========================================================================
   6. SITE INFRASTRUCTURE CARD COMPONENT BLOCKS
   ========================================================================== */
.splut-card { 
    background: #18181b; 
    border: 1px solid #27272a; 
}

.stat-box { 
    background: #09090b; 
    border: 1px solid #27272a; 
    border-radius: 8px; 
    padding: 15px; 
    text-align: center; 
}

.stat-val { 
    font-size: 1.5rem; 
    font-weight: bold; 
    margin-top: 5px; 
}

.stat-label { 
    font-size: 10px; 
    text-transform: uppercase; 
    color: #a1a1aa; 
    letter-spacing: 1px; 
    font-weight: bold; 
}

/* ==========================================================================
   7. CORE COMPONENT TABLES & DRAWER WRAPPERS
   ========================================================================== */
.table-wrapper { 
    height: 400px; 
    overflow-y: auto; 
}

.table-container { 
    overflow-x: auto; 
}

th { 
    text-transform: uppercase; 
    font-size: 10px; 
    letter-spacing: 1px; 
    padding: 1rem; 
    color: #a1a1aa; 
    border-bottom: 1px solid #27272a; 
}

td { 
    padding: 1rem; 
    border-bottom: 1px solid rgba(39, 39, 42, 0.5); 
}

input[type="date"]::-webkit-calendar-picker-indicator { 
    filter: invert(1); 
    cursor: pointer; 
}

/* ==========================================================================
   8. MULTI-SELECT DROPDOWN FILTER ELEMENTS
   ========================================================================== */
.dropdown-check-list {
    display: inline-block;
    position: relative;
    width: 100%;
}

.dropdown-check-list .items {
    display: none;
    position: absolute;
    z-index: 100;
    width: 100%;
    background: #09090b;
    border: 1px solid #3f3f46;
    padding: 10px;
    border-radius: 8px;
    top: 100%; 
    left: 0;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

.dropdown-check-list:hover .items,
.dropdown-check-list .items:hover {
    display: block;
}

.dropdown-check-list::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

/* ==========================================================================
   9. INTERACTIVE SYSTEM INTERNAL SCROLLBARS
   ========================================================================== */
.custom-scrollbar::-webkit-scrollbar { 
    width: 4px; 
}

.custom-scrollbar::-webkit-scrollbar-track { 
    background: #09090b; 
}

.custom-scrollbar::-webkit-scrollbar-thumb { 
    background: #3f3f46; 
    border-radius: 10px; 
}