/* ============================================================
   PARK-IL — Custom Stylesheet
   Colors: Navy #1B2A4A | Yellow #F5B800 | White #FFFFFF
   ============================================================ */

:root {
    --parkil-navy:        #1B2A4A;
    --parkil-navy-dark:   #111D33;
    --parkil-navy-light:  #2D3F66;
    --parkil-yellow:      #F5B800;
    --parkil-yellow-dark: #D9A200;
    --parkil-yellow-light:#FFF8E1;
    --parkil-white:       #FFFFFF;
    --parkil-light:       #F8F9FA;
    --parkil-gray:        #6C757D;
    --parkil-success:     #25D366; /* WhatsApp green */
    --bs-body-font-family: 'Rubik', 'Inter', sans-serif;
}

/* ---- Base ---- */
body {
    font-family: var(--bs-body-font-family);
    background-color: var(--parkil-light);
    color: var(--parkil-navy);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ---- Navbar ---- */
.parkil-navbar {
    background-color: var(--parkil-navy);
    padding: 0.6rem 0;
    box-shadow: 0 2px 12px rgba(27,42,74,0.3);
}
.parkil-navbar .navbar-brand img {
    filter: brightness(1);
}
.parkil-navbar .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    transition: color 0.2s;
}
.parkil-navbar .nav-link:hover,
.parkil-navbar .nav-link.active {
    color: var(--parkil-yellow) !important;
}
.nav-link-rent {
    color: var(--parkil-yellow) !important;
    font-weight: 600 !important;
}

/* ---- Buttons ---- */
.btn-parkil-navy {
    background-color: var(--parkil-navy);
    color: var(--parkil-white);
    border: none;
    font-weight: 600;
    border-radius: 8px;
    transition: background 0.2s, transform 0.1s;
}
.btn-parkil-navy:hover {
    background-color: var(--parkil-navy-dark);
    color: var(--parkil-white);
    transform: translateY(-1px);
}
.btn-parkil-yellow {
    background-color: var(--parkil-yellow);
    color: var(--parkil-navy);
    border: none;
    font-weight: 700;
    border-radius: 8px;
    transition: background 0.2s, transform 0.1s;
}
.btn-parkil-yellow:hover {
    background-color: var(--parkil-yellow-dark);
    color: var(--parkil-navy);
    transform: translateY(-1px);
}
.btn-whatsapp {
    background-color: var(--parkil-success);
    color: white;
    border: none;
    font-weight: 600;
    border-radius: 8px;
    transition: background 0.2s;
}
.btn-whatsapp:hover {
    background-color: #1ebe5a;
    color: white;
}

/* ---- Hero Section ---- */
.parkil-hero {
    background: linear-gradient(135deg, var(--parkil-navy) 0%, var(--parkil-navy-light) 100%);
    color: white;
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}
.parkil-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: var(--parkil-yellow);
    opacity: 0.05;
    border-radius: 50%;
}
.hero-card {
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}
.hero-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.hero-card .hero-icon {
    font-size: 3rem;
    color: var(--parkil-yellow);
    margin-bottom: 1rem;
}
.hero-card h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}
.hero-card p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 1.5rem;
}

/* ---- How It Works ---- */
.how-works-section {
    background: white;
    padding: 4rem 0;
}
.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
}
.step-number {
    width: 56px;
    height: 56px;
    background: var(--parkil-yellow);
    color: var(--parkil-navy);
    border-radius: 50%;
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.step-card h5 {
    font-weight: 700;
    color: var(--parkil-navy);
}

/* ---- Cards ---- */
.parkil-card {
    background: white;
    border: 1px solid rgba(27,42,74,0.1);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(27,42,74,0.06);
    transition: box-shadow 0.2s;
}
.parkil-card:hover {
    box-shadow: 0 6px 20px rgba(27,42,74,0.12);
}

/* ---- Forms ---- */
.parkil-form .form-control,
.parkil-form .form-select {
    border-radius: 8px;
    border: 1.5px solid #D1D5DB;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.parkil-form .form-control:focus,
.parkil-form .form-select:focus {
    border-color: var(--parkil-yellow);
    box-shadow: 0 0 0 3px rgba(245,184,0,0.2);
    outline: none;
}
.parkil-form label {
    font-weight: 600;
    color: var(--parkil-navy);
    margin-bottom: 0.35rem;
}

/* ---- Auth pages ---- */
.auth-container {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}
.auth-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(27,42,74,0.12);
    width: 100%;
    max-width: 480px;
}
.auth-card .auth-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}
.auth-card h2 {
    text-align: center;
    font-weight: 800;
    color: var(--parkil-navy);
    margin-bottom: 1.5rem;
}

/* ---- Admin ---- */
.admin-sidebar {
    background: var(--parkil-navy);
    min-height: 100vh;
    color: white;
    width: 250px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    overflow-y: auto;
}
.admin-sidebar .sidebar-brand {
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 0.65rem 1.25rem;
    border-radius: 6px;
    margin: 0.1rem 0.75rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(245,184,0,0.15);
    color: var(--parkil-yellow);
}
.admin-sidebar .nav-link i {
    width: 20px;
    margin-inline-end: 0.5rem;
}
.admin-main {
    margin-inline-start: 250px;
    padding: 2rem;
    background: var(--parkil-light);
    min-height: 100vh;
}
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid var(--parkil-yellow);
    box-shadow: 0 2px 8px rgba(27,42,74,0.08);
}
.stat-card .stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--parkil-navy);
}
.stat-card .stat-label {
    color: var(--parkil-gray);
    font-size: 0.9rem;
}

/* ---- Footer ---- */
.parkil-footer {
    background: var(--parkil-navy);
    color: rgba(255,255,255,0.8);
    margin-top: auto;
}
.footer-link {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    display: block;
    padding: 0.2rem 0;
    transition: color 0.2s;
}
.footer-link:hover {
    color: var(--parkil-yellow);
}

/* ---- Badges ---- */
.badge {
    font-weight: 600;
    padding: 0.4em 0.75em;
    border-radius: 6px;
    font-size: 0.8rem;
}

/* ---- Tables ---- */
.table-parkil thead {
    background: var(--parkil-navy);
    color: white;
}
.table-parkil thead th {
    font-weight: 600;
    border: none;
    padding: 0.9rem 1rem;
}
.table-parkil tbody tr:hover {
    background: var(--parkil-yellow-light);
}

/* ---- Section titles ---- */
.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--parkil-navy);
    position: relative;
    display: inline-block;
    margin-bottom: 0.5rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    inset-inline-start: 0;
    width: 48px;
    height: 4px;
    background: var(--parkil-yellow);
    border-radius: 2px;
}

/* ---- RTL adjustments ---- */
.rtl-body .admin-sidebar { left: auto; right: 0; }
.rtl-body .admin-main    { margin-inline-start: 250px; }
.rtl-body .stat-card     { border-left: none; border-right: 4px solid var(--parkil-yellow); }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .admin-sidebar { width: 100%; min-height: auto; position: relative; }
    .admin-main    { margin-inline-start: 0; padding: 1rem; }
    .parkil-hero   { padding: 3rem 0 2rem; }
    .auth-card     { padding: 1.5rem; }
}
