/* =================================================
   RIDEHUB - Customizzazioni Bootstrap + Stili Custom
   ================================================= */

/* Font globale */
body {
    font-family: 'Inter', sans-serif;
}

/* =================================================
   PAGINE LOGIN
   ================================================= */

.login-logo-icon {
    width: 64px;
    height: 64px;
    background-color: #dc3545;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(220, 53, 69, 0.3);
}

/* =================================================
   HOME - Landing Page
   ================================================= */

body.rh-home {
    background-color: #111827;
    color: white;
}

.rh-topbar {
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.rh-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.rh-logo-icon {
    width: 40px;
    height: 40px;
    background-color: #dc3545;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.rh-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.rh-hero {
    min-height: calc(100vh - 65px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem;
}

.rh-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #f87171;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.rh-hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    color: white;
    margin-bottom: 1.25rem;
}

.rh-hero-title span {
    color: #dc3545;
}

.rh-hero-subtitle {
    font-size: 1.1rem;
    color: #9ca3af;
    line-height: 1.7;
    max-width: 540px;
    margin: 0 auto 2.5rem;
}

.rh-login-box {
    background-color: #1f2937;
    border: 1px solid #374151;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 420px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.rh-login-box-title {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
}

.rh-login-box-subtitle {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 1.25rem;
}

.rh-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0;
    color: #4b5563;
    font-size: 0.75rem;
}

.rh-divider::before,
.rh-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #374151;
}

.rh-alert-error {
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #f87171;
    border-radius: 0.5rem;
    padding: 0.625rem 0.875rem;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.rh-features {
    background-color: #0f172a;
    padding: 5rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.rh-feature-card {
    background-color: #1f2937;
    border: 1px solid #374151;
    border-radius: 0.875rem;
    padding: 1.75rem;
    height: 100%;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.rh-feature-card:hover {
    border-color: rgba(220, 53, 69, 0.4);
    transform: translateY(-3px);
}

.rh-feature-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(220, 53, 69, 0.12);
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #dc3545;
    margin-bottom: 1rem;
}

.rh-feature-title {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

.rh-feature-text {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

.rh-footer {
    background-color: #030712;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 1.5rem;
    text-align: center;
}

/* =================================================
   INPUT DARK
   ================================================= */

.rh-input {
    background-color: #374151 !important;
    border-color: #4b5563 !important;
    color: white !important;
    font-family: 'Inter', sans-serif;
}

.rh-input::placeholder {
    color: #6b7280 !important;
}

.rh-input:focus {
    background-color: #374151 !important;
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.2) !important;
    color: white !important;
}

.rh-input-prefix {
    background-color: #1f2937 !important;
    border-color: #4b5563 !important;
    color: #6b7280 !important;
}

/* =================================================
   APP - Layout autenticato
   ================================================= */

.nav-pills .nav-link {
    color: #d1d5db;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.nav-pills .nav-link:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.08);
    color: white;
}

.nav-pills .nav-link.active {
    background-color: #dc3545 !important;
    color: white !important;
}

.rh-stat-card {
    border: 1px solid #f3f4f6;
    border-radius: 0.75rem;
    padding: 1.25rem;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    height: 100%;
}

.rh-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.rh-badge-active    { background-color: #dcfce7; color: #166534; }
.rh-badge-expired   { background-color: #fee2e2; color: #991b1b; }
.rh-badge-suspended { background-color: #fef9c3; color: #854d0e; }
.rh-badge-honorary  { background-color: #ede9fe; color: #6d28d9; }
.rh-badge-pending   { background-color: #f3f4f6; color: #374151; }

.table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    font-weight: 600;
}

/* =================================================
   SCROLLBAR
   ================================================= */

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #1f2937; }
::-webkit-scrollbar-thumb { background: #4b5563; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #6b7280; }

