/* ============================================================
   CarePickup — Admin Panel Custom Styling
   ============================================================ */

/* Top sidebar logo */
.fi-sidebar-header .fi-logo-img,
.fi-sidebar-header .fi-brand-logo,
.fi-sidebar-header img {
    max-width: 100% !important;
    height: auto !important;
    max-height: 2.8rem !important;
    object-fit: contain !important;
}

.fi-simple-layout {
    position: relative;
    min-height: 100vh;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    transition: background-image 0.6s ease-in-out;
}

.fi-simple-layout::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.72) 0%,
        rgba(30, 41, 59, 0.65) 50%,
        rgba(15, 23, 42, 0.80) 100%
    );
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 0;
}

.fi-simple-main-ctn {
    position: relative;
    z-index: 1;
}

.fi-simple-main-ctn > * {
    background: rgba(15, 23, 42, 0.80) !important;
    border: 1px solid rgba(249, 115, 22, 0.25) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.50),
        0 0 0 1px rgba(249, 115, 22, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    border-radius: 20px !important;
}

/* Login page logo - make prominently sized */
.fi-simple-layout .fi-logo,
.fi-simple-layout img.fi-logo,
.fi-simple-header img,
.fi-simple-layout .fi-brand-logo {
    height: 6.5rem !important;
    width: auto !important;
    max-width: 260px !important;
    display: block !important;
    margin: 0 auto 0.75rem !important;
    filter: drop-shadow(0 4px 16px rgba(249, 115, 22, 0.35));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.fi-simple-layout .fi-logo:hover,
.fi-simple-layout img.fi-logo:hover,
.fi-simple-header img:hover,
.fi-simple-layout .fi-brand-logo:hover {
    transform: scale(1.04);
    filter: drop-shadow(0 6px 20px rgba(249, 115, 22, 0.55));
}

.fi-simple-layout h1,
.fi-simple-layout .fi-simple-main-ctn h1 {
    color: #f8fafc !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
}

.fi-simple-layout .fi-fo-field-wrp label,
.fi-simple-layout label {
    color: #cbd5e1 !important;
}

.fi-simple-layout input[type="email"],
.fi-simple-layout input[type="password"],
.fi-simple-layout input[type="text"] {
    background: rgba(30, 41, 59, 0.70) !important;
    border-color: rgba(100, 116, 139, 0.40) !important;
    color: #f1f5f9 !important;
}

.fi-simple-layout input:focus {
    border-color: #f97316 !important;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.20) !important;
}

.fi-simple-layout .fi-checkbox-label {
    color: #94a3b8 !important;
}

/* Image credit badge */
#bg-credit {
    position: fixed;
    bottom: 14px;
    right: 16px;
    z-index: 10;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    background: rgba(0, 0, 0, 0.35);
    padding: 4px 10px;
    border-radius: 20px;
    backdrop-filter: blur(6px);
    transition: color 0.2s ease;
}

#bg-credit:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* Trip Audit & Telemetry Page Styles (CarePickup Inspection) */
.cp-view-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    color: #f1f5f9;
}

.cp-card {
    background-color: #111827 !important;
    border: 1px solid #1f2937 !important;
    border-radius: 1rem !important;
    padding: 1.25rem !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3) !important;
}

.cp-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    background: linear-gradient(145deg, #111827 0%, #1e293b 100%) !important;
    border: 1px solid #334155 !important;
    border-radius: 1.25rem !important;
    padding: 1.5rem !important;
}

.cp-metrics-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.75rem !important;
}

@media (min-width: 640px) {
    .cp-metrics-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 1024px) {
    .cp-metrics-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    }
}

.cp-metric-card {
    background: #111827 !important;
    border: 1px solid #1f2937 !important;
    border-radius: 0.875rem !important;
    padding: 1rem !important;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.cp-metric-head svg {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
}

#trip-audit-map {
    width: 100%;
    height: 540px;
    background-color: #0b0f19;
}


