/* ==========================================
   Denso DTC Remover — Custom Styles
   ========================================== */

/* --- Navigation Glass Effect --- */
.nav-glass {
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* --- Glass Card Component --- */
.glass-card {
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid rgba(31, 41, 55, 0.5);
    border-radius: 1rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(55, 65, 81, 0.6);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* --- Button Styles --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.75rem;
    background: #EB0A1E;
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary:hover {
    background: #C30818;
    box-shadow: 0 0 30px rgba(235, 10, 30, 0.3);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: #374151;
    color: #6B7280;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-primary-sm {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    background: #EB0A1E;
    color: white;
    font-weight: 600;
    font-size: 0.8125rem;
    border-radius: 0.625rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary-sm:hover {
    background: #C30818;
    box-shadow: 0 0 20px rgba(235, 10, 30, 0.25);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.75rem;
    background: transparent;
    color: #D1D5DB;
    font-weight: 600;
    font-size: 0.875rem;
    border: 1px solid #374151;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.btn-ghost:hover {
    background: rgba(31, 41, 55, 0.5);
    color: white;
    border-color: #4B5563;
}

.btn-ghost-sm {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    background: transparent;
    color: #9CA3AF;
    font-weight: 500;
    font-size: 0.8125rem;
    border: 1px solid #374151;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-ghost-sm:hover {
    background: rgba(31, 41, 55, 0.5);
    color: white;
    border-color: #4B5563;
}

/* --- Nav Links --- */
.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    color: #D1D5DB;
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.nav-link:hover {
    background: rgba(31, 41, 55, 0.5);
    color: white;
}

/* --- Tab Navigation --- */
.tab-active {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1.25rem;
    background: rgba(235, 10, 30, 0.1);
    border: 1px solid rgba(235, 10, 30, 0.2);
    color: #EB0A1E;
    font-weight: 600;
    font-size: 0.8125rem;
    border-radius: 0.625rem;
    text-decoration: none;
    white-space: nowrap;
}

.tab-inactive {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1.25rem;
    color: #9CA3AF;
    font-weight: 500;
    font-size: 0.8125rem;
    border-radius: 0.625rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    white-space: nowrap;
}

.tab-inactive:hover {
    background: rgba(31, 41, 55, 0.5);
    color: #D1D5DB;
}

/* --- Form Inputs --- */
.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid #374151;
    border-radius: 0.625rem;
    color: #F9FAFB;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s ease;
}

.input-field::placeholder {
    color: #6B7280;
}

.input-field:focus {
    border-color: #EB0A1E;
    box-shadow: 0 0 0 3px rgba(235, 10, 30, 0.1);
}

select.input-field {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

textarea.input-field {
    min-height: 100px;
}

/* --- Status Badges --- */
.status-badge-completed {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #34D399;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
}

.status-badge-processing {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #60A5FA;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
}

.status-badge-pending {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #FBBF24;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
}

/* --- Hero Grid Background --- */
.hero-grid {
    background-image:
        linear-gradient(rgba(235, 10, 30, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(235, 10, 30, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, black 30%, transparent 100%);
}

/* --- Scroll Reveal Animation --- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Checkbox Custom Styling --- */
input[type="checkbox"] {
    accent-color: #EB0A1E;
}

/* --- Scrollbar Custom --- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #111827;
}

::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4B5563;
}

/* --- Selection Color --- */
::selection {
    background: rgba(235, 10, 30, 0.3);
    color: white;
}

/* --- Responsive Utilities --- */
@media (max-width: 640px) {
    .btn-primary {
        width: 100%;
        justify-content: center;
    }

    .glass-card {
        border-radius: 0.75rem;
    }
}
