/* Raj Cabs Master Stylesheet
   Covers: Admin, Vendor, and Customer Portals
*/

/* 1. Global Reset & Fonts */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

.rc-admin-wrapper, .rc-vendor-portal, .rc-customer-dashboard, .rc-search-container {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #1e293b;
    line-height: 1.5;
}

/* 2. Unified Card System (React-style) */
.card, .rc-login-card, .rc-tab-content, .cab-result-item {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.07) !important;
    padding: 24px !important;
    margin-bottom: 24px !important;
    transition: all 0.3s ease;
}

.cab-result-item:hover {
    transform: translateY(-4px);
    border-color: #3b82f6 !important;
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.15) !important;
}

/* 3. Typography Updates */
h1, h2, h3 {
    color: #0f172a;
    font-weight: 700 !important;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

/* 4. Enhanced Form Inputs */
input[type="text"], input[type="email"], input[type="number"], 
input[type="date"], select, textarea {
    background-color: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    font-size: 15px !important;
    width: 100%;
    transition: all 0.2s ease;
}

input:focus, select:focus {
    background-color: #ffffff !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1) !important;
    outline: none !important;
}

/* 5. Button System */
.button-primary, .rc-btn-primary, .rc-btn {
    background: #3b82f6 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    cursor: pointer;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease !important;
}

.button-primary:hover, .rc-btn-primary:hover {
    background: #2563eb !important;
    box-shadow: 0 8px 15px -3px rgba(37, 99, 235, 0.4) !important;
}

/* 6. Customer Specific: Cab Results & Search */
.rc-results-grid {
    display: grid;
    gap: 20px;
}

.cab-info-title { font-size: 18px; font-weight: 700; color: #1e293b; }
.cab-price-tag { font-size: 22px; font-weight: 800; color: #3b82f6; }

/* 7. Enhanced Status Badges */
.badge {
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}

.badge-active, .badge-assigned { background: #dcfce7; color: #166534; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-completed { background: #e0e7ff; color: #3730a3; }
.badge-cancelled { background: #fee2e2; color: #991b1b; }

/* 8. Map Container Styling (Leaflet) */
#map-pickup, #map-search_pickup {
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    z-index: 1; /* Ensure map doesn't overlap menus */
}

/* 9. Custom Table (Admin/Vendor Tables) */
.wp-list-table {
    border: 1px solid #f1f5f9 !important;
}
.wp-list-table thead th {
    background: #f8fafc !important;
    padding: 15px !important;
}