:root {
  /* existing tire-accent variables */
  --tire-accent-color: #fd7e14; /* Bootstrap Orange */
  --tire-accent-color-lighter: #feb272; /* Soft Pastel Orange (Good for backgrounds/badges) */
  --tire-accent-color-darker: #c96410;  /* Deep Orange (Good for text/borders) */
}

.tire-accent {
    color: var(--tire-accent-color);
}

.bg-dark a,
footer.bg-dark     a {
    color: var(--tire-accent-color);
    text-decoration:none;
}

.bg-dark a:hover,
footer.bg-dark     a:hover {
    color: var(--tire-accent-color-darker);
}

header.bg-dark nav a {
    color: #EEEEEE;
}
header.bg-dark nav a:hover {
    color: #CCCCCC;
} 

.form-control::placeholder, input.form-control::placeholder, textarea.form-control::placeholder {
  color: #d5d5d5; /* A very light grey color */
  opacity: 1; /* Ensures consistent appearance across browsers, especially Firefox */
}
.form-label {
    color: #adb5bd;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.section-header {
    border-bottom: 1px solid #495057;
    padding-bottom: 5px;
    margin-bottom: 15px;
    color: #fd7e14; /* Orange accent */
    font-weight: 600;
}
/* Custom Drag and Drop styling */
.drop-zone {
    border: 2px dashed #495057;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: border 0.3s;
    position: relative;
}
.drop-zone:hover {
    border-color: #fd7e14;
}
.drop-zone-input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}


/* **************** */ 
/* Add some personality, IDK */ 
main {
    background-color: #f2f1ef;
    background-image:
        repeating-linear-gradient(
            135deg,
            transparent 0px,
            transparent 7px,
            rgba(50, 50, 50, 0.025) 7px,
            rgba(50, 50, 50, 0.025) 8px
        ),
        linear-gradient(
            180deg,
            #f7f6f4 0%,
            #e9e8e5 100%
        );
}

/* ****************** */

html > body .bg-tire-tread {
    background-color: #292c2f;

    background-image:
        /* Subtle highlight from the top */
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.045) 0%,
            rgba(255, 255, 255, 0) 100%
        ),
        /* Diagonal tread blocks */
        repeating-linear-gradient(
            115deg,
            transparent 0px,
            transparent 10px,
            #181a1c 10px,
            #181a1c 13px,
            transparent 13px,
            transparent 30px
        ),
        /* Offset rows */
        repeating-linear-gradient(
            65deg,
            transparent 0px,
            transparent 10px,
            #202225 10px,
            #202225 13px,
            transparent 13px,
            transparent 30px
        );

    background-size: auto, 44px 44px, 44px 44px;
    background-blend-mode: normal;

    color: #fff;
    border-bottom: 1px solid #151719;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
}

/* =========================================
   UI UPGRADES: Typography, Nav, Scrollbar, Cards & Footer
   ========================================= */

/* 1. Typography */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
h1, h2, h3, h4, h5, h6, .navbar-brand, .fw-bold, .section-header {
    font-family: 'Barlow', sans-serif;
}

/* 2. Nav Dropdown "Premium" Hover */
.dropdown-menu .dropdown-item {
    transition: transform 0.2s ease-in-out, color 0.2s ease-in-out;
}
.dropdown-menu .dropdown-item:hover {
    color: var(--tire-accent-color) !important;
    transform: translateX(4px);
}
.dropdown-menu .dropdown-item:hover i {
    color: var(--tire-accent-color) !important;
    transition: color 0.2s ease-in-out;
}

/* 3. Public Header Links "Ignition" Hover (Text-Width Fix) */
#publicNav .navbar-nav.me-auto .nav-link {
    position: relative;
    transition: color 0.3s ease;
}
#publicNav .navbar-nav.me-auto .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px; 
    left: 50%;
    background: var(--tire-accent-color);
    transition: width 0.3s ease, left 0.3s ease;
}
#publicNav .navbar-nav.me-auto .nav-link:hover {
    color: #fff !important; 
}
#publicNav .navbar-nav.me-auto .nav-link:hover::after {
    /* Subtracts Bootstrap's 0.5rem left/right click-padding so it only spans the text */
    width: calc(100% - 1rem); 
    left: 0.5rem;
}

/* 4. Custom Themed Scrollbar (Widened) */
html {
    scrollbar-width: auto; /* Reverted from thin to standard for Firefox */
    scrollbar-color: var(--tire-accent-color) #292c2f;
}
::-webkit-scrollbar {
    width: 16px; /* Widened for easier grabbing */
    height: 16px;
}
::-webkit-scrollbar-track {
    background: #292c2f;
}
::-webkit-scrollbar-thumb {
    background-color: var(--tire-accent-color);
    border-radius: 8px;
    border: 4px solid #292c2f; /* Creates a thicker track rail effect */
}
::-webkit-scrollbar-thumb:hover {
    background-color: var(--tire-accent-color-darker);
}
::-webkit-scrollbar-corner {
    background: #292c2f;
}

/* 5. Global Card Hover (Shadow Only) */
.card {
    transition: box-shadow 0.2s ease-in-out;
}
.card:hover {
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important;
}

/* 6. Footer Industrial Metal Mesh (High-Contrast Fix) */
footer.bg-dark {
    background-color: #222 !important; /* Lighter base so the holes pop */
    /* Punched Grille Texture (Black holes) */
    background-image: 
        radial-gradient(#000 35%, transparent 36%),
        radial-gradient(#000 35%, transparent 36%);
    background-size: 8px 8px; /* Slightly larger perforation */
    background-position: 0 0, 4px 4px;
    
    border-top: 4px solid var(--tire-accent-color-darker);
    box-shadow: inset 0 8px 15px rgba(0,0,0,0.6);
}

/* =========================================
   QoL INTERACTIVES: Focus, Buttons, Modals, Badges, Inputs
   ========================================= */

/* 1. Kill the Bootstrap Blue Glow (Respecting Input Groups) */
.form-control:focus, 
.form-select:focus, 
.form-check-input:focus, 
.btn:focus,
.page-link:focus {
    border-color: var(--tire-accent-color);
    box-shadow: 0 0 0 0.25rem rgba(253, 126, 20, 0.25); 
}

/* Pull the focused grouped input to the front so the aura isn't clipped */
.input-group .form-control:focus,
.input-group .form-select:focus,
.input-group .btn:focus {
    z-index: 5;
}

/* Kill the native blue flash when clicking a dropdown link */
.dropdown-menu .dropdown-item:active,
.dropdown-menu .dropdown-item:focus {
    background-color: rgba(253, 126, 20, 0.1) !important; /* Very subtle orange tint instead of solid blue */
    color: var(--tire-accent-color-darker) !important;
}

/* 2. Themed Checkboxes & Switches */
.form-check-input:checked {
    background-color: var(--tire-accent-color) !important;
    border-color: var(--tire-accent-color) !important;
}

/* 3. Tactile Button Physics */
.btn {
    transition: transform 0.1s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.btn:not(.btn-link):not(:disabled):active {
    transform: scale(0.96); /* Subtle physical click compression */
}

/* 4. Glassmorphism Modal Backdrops */
.modal-backdrop.show {
    opacity: 1 !important;
    background-color: rgba(0, 0, 0, 0.4) !important; /* Lighter background... */
    backdrop-filter: blur(4px); /* ...so the blur does the heavy lifting */
    -webkit-backdrop-filter: blur(4px);
}

