/**
 * U-Cleaning.com - Component Styles
 * Phase 2: Foundation Components
 * Created: 2026-01-22
 */

/* ============================================================================
   BACK BUTTON
   ========================================================================= */

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #006db2;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 20px;
    transition: color 0.2s ease;
}

.back-button:hover {
    color: #006db2;
}

.back-button i {
    font-size: 0.875rem;
}

/* ============================================================================
   LAYOUT UTILITIES
   ========================================================================= */

.content-wrapper {
    padding: 80px 30px 40px;
    flex: 1;
}

/* ============================================================================
   CARD COMPONENT
   ========================================================================= */

.x-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
    padding: 32px;
}

/* Card spacing */
.x-card + .x-card {
    margin-top: 20px;
}

/* Card padding variants */
.x-card--no-padding {
    padding: 0;
}

.x-card--sm {
    padding: 20px;
}

.x-card--lg {
    padding: 40px;
}

/* Card header */
.x-card__header {
    margin-bottom: 16px;
}

.x-card__title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.x-card__title i {
    color: #64748b;
}

.x-card__subtitle {
    color: #64748b;
    margin-top: 4px;
    margin-bottom: 0;
    font-size: 0.9375rem;
}

/* Card body */
.x-card__body {
    /* No default styles - content flows naturally */
}

/* Card footer */
.x-card__footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

/* ============================================================================
   BUTTON VARIANTS
   ========================================================================= */

/* Button base styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
}

/* Success button (green) */
.btn-success {
    background: #22c55e;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease;
}

.btn-success:hover {
    background: #16a34a;
}

/* Warning button (yellow/orange) */
.btn-warning {
    background: #f59e0b;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease;
}

.btn-warning:hover {
    background: #d97706;
}

/* Info button (blue) */
.btn-info {
    background: #3b82f6;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease;
}

.btn-info:hover {
    background: #2563eb;
}

/* Ghost button (transparent with border) */
.btn-ghost {
    background: transparent;
    color: #64748b;
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-ghost:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #475569;
}

/* Button sizes */
.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 1.0625rem;
}

/* ============================================================================
   STATUS BADGE ENHANCEMENTS
   Supplements badge-status.blade.php component
   ========================================================================= */

.status-badge--active {
    background: #dcfce7;
    color: #166534;
}

.status-badge--inactive {
    background: #fee2e2;
    color: #991b1b;
}

.status-badge--pending {
    background: #dbeafe;
    color: #1e40af;
}

.status-badge--on_leave {
    background: #fef3c7;
    color: #92400e;
}

.status-badge--suspended {
    background: #fee2e2;
    color: #991b1b;
}

.status-badge--verified {
    background: #dcfce7;
    color: #166534;
}

.status-badge--unverified {
    background: #fef3c7;
    color: #92400e;
}

/* ============================================================================
   FILTER COMPONENTS
   ========================================================================= */

/* Filter actions container */
.filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Filter form grid */
.filters-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

/* Filter group (field wrapper) */
.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    font-size: 0.875rem;
}

/* ============================================================================
   NOTIFICATIONS LIST
   ========================================================================= */
.notifications-list { padding: 0; }
.notification-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.2s ease;
}
.notification-item.is-read { background: #f9fafb; }
.notification-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.notification-icon-info { background:#dbeafe; color:#1e40af; }
.notification-icon-success { background:#dcfce7; color:#166534; }
.notification-icon-warning { background:#fef3c7; color:#92400e; }
.notification-icon-danger { background:#fee2e2; color:#991b1b; }
.notification-content { flex:1; min-width:0; }
.notification-title { font-size:16px; font-weight:600; color:#0f172a; margin:0; }
.notification-time { font-size:12px; color:#6b7280; white-space:nowrap; margin-left:12px; }
.notification-message { color:#4b5563; margin:0 0 8px 0; font-size:14px; line-height:1.5; }
.notification-link { color:#006db2; text-decoration:none; font-weight:600; font-size:14px; display:inline-flex; align-items:center; gap:4px; }
.notification-link i { font-size:12px; }
.notification-actions { flex-shrink:0; display:flex; gap:8px; }

/* ============================================================================
   BOOKINGS ADMIN TABLE & STATS
   ========================================================================= */
.booking-stats-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #3b82f6;
}
.booking-stats-card.pending { border-left-color: #f59e0b; }
.booking-stats-card.confirmed { border-left-color: #3b82f6; }
.booking-stats-card.completed { border-left-color: #10b981; }
.booking-stats-label { font-size: 14px; color: #6b7280; margin-bottom: 8px; }
.booking-stats-value { font-size: 32px; font-weight: 700; color: #1f2937; }
.booking-table thead th {
    background: #f9fafb;
    font-weight: 600;
    font-size: 14px;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
    padding: 12px 16px;
}
.booking-table tbody td {
    padding: 12px 16px;
    vertical-align: middle;
    font-size: 14px;
}
.booking-table tbody tr:hover { background: #f9fafb; }
.booking-status {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 12px;
}
.booking-status.pending { background: #fef3c7; color: #92400e; }
.booking-status.confirmed { background: #dbeafe; color: #1e40af; }
.booking-status.in_progress { background: #e0e7ff; color: #3730a3; }
.booking-status.completed { background: #d1fae5; color: #065f46; }
.booking-status.cancelled { background: #fee2e2; color: #991b1b; }
.booking-payment {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 10px;
}
.booking-payment.pending { background: #fef3c7; color: #92400e; }
.booking-payment.paid { background: #d1fae5; color: #065f46; }
.booking-payment.failed { background: #fee2e2; color: #991b1b; }
.booking-payment.refunded { background: #e0e7ff; color: #3730a3; }

/* ============================================================================
   WORK ORDERS (ADMIN) SHARED STYLES
   ========================================================================= */
.wo-card { background: white; border-radius: 12px; box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08); padding: 20px; }
.wo-card-header {
    background: #006db2;
    color: white;
    padding: 1.5rem;
    border-radius: 8px 8px 0 0;
    text-align: center;
}
.wo-description { color: #666; font-size: 0.95rem; margin-bottom: 1.5rem; min-height: 60px; }
.wo-filter-label { display:block; font-size:0.75rem; font-weight:600; color:#495057; text-transform:uppercase; letter-spacing:0.5px; margin-bottom:6px; }
.wo-filter-input, .wo-filter-select { width:100%; padding:10px 12px; border:2px solid #e9ecef; border-radius:6px; font-size:0.9rem; transition:all 0.3s; }
.wo-filter-input:focus, .wo-filter-select:focus { outline:none; border-color:#006db2; box-shadow:0 0 0 3px rgba(0,175,163,0.1); }
.wo-recent-item { display:block; padding:12px; margin-bottom:10px; background:#f8fafc; border-radius:10px; text-decoration:none; border-left:4px solid #006db2; transition:all 0.2s; }
.wo-recent-item:hover { background:#e7f5f4; border-left-color:#4a7ba7; transform:translateX(2px); box-shadow:0 4px 10px rgba(0,175,163,0.12); }
.wo-stat-label { font-weight:600; color:#495057; font-size:0.85rem; }
.wo-stat-value { font-weight:700; font-size:0.9rem; }
.wo-empty {
    padding: 60px;
    text-align: center;
}
.wo-empty-icon { color: #dee2e6; font-size: 4rem; margin-bottom: 20px; }
.wo-empty-title { color: #6c757d; font-size: 1.3rem; margin-bottom: 10px; }
.wo-empty-sub { color: #adb5bd; margin-bottom: 25px; }
.wo-btn-block { width:100%; padding:12px; border:none; border-radius:6px; font-size:0.9rem; font-weight:600; cursor:pointer; transition:all 0.3s; display:flex; align-items:center; justify-content:center; gap:8px; }
.wo-btn-block + .wo-btn-block { margin-top: 10px; }
.wo-btn-primary { background:#006db2; color:white; }
.wo-btn-primary:hover { background:#008c82; }
.wo-btn-secondary { background:#4a7ba7; color:white; }
.wo-btn-secondary:hover { background:#3a6187; }
.wo-btn-outline { background:white; color:#006db2; border:2px solid #006db2; }
.wo-btn-outline:hover { background:#006db2; color:white; }
.wo-text-muted { color:#6c757d; font-size:0.8rem; }
.wo-text-small { font-size:0.75rem; color:#999; }
.wo-badge { padding:4px 10px; border-radius:999px; font-size:0.8rem; font-weight:600; }
.wo-legend { display:flex; gap:20px; justify-content:center; margin-bottom:20px; }
.wo-legend-item { display:flex; align-items:center; gap:8px; }
.wo-legend-color { width:16px; height:16px; border-radius:4px; }
.wo-section-title { color:#4a7ba7; font-size:1rem; font-weight:600; margin-bottom:15px; padding-bottom:10px; border-bottom:2px solid #006db2; }
.wo-meta { display:grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.wo-meta-label { font-size: 0.75rem; color: #6b7280; text-transform: uppercase; letter-spacing: 0.05em; }
.wo-meta-value { font-weight: 600; color: #0f172a; }
.wo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.wo-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.wo-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.wo-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.wo-scroll { max-height: 300px; overflow-y: auto; }
.wo-kpi { background:white; padding:25px; border-radius:12px; box-shadow:0 2px 15px rgba(0,0,0,0.08); }
.wo-kpi-label { font-size:0.85rem; color:#6c757d; margin-bottom:8px; font-weight:500; }
.wo-kpi-value { font-size:2.25rem; font-weight:bold; }
.wo-kpi-value.active { color:#006db2; }
.wo-kpi-value.inactive { color:#6c757d; }
.wo-kpi-value.warning { color:#ffc107; }
.wo-kpi-value.danger { color:#dc3545; }
.wo-cta-grid { display:grid; grid-template-columns: 320px minmax(0, 1fr); gap:25px; align-items:start; }
.wo-sidebar { display:flex; flex-direction:column; gap:20px; }
.wo-sidebar .wo-card { width:100%; }
.wo-detail-card { min-width:0; }
.wo-page { padding-top: 8px; padding-bottom: 24px; }
.wo-tabs { display:flex; gap:4px; background:white; border-radius:12px; padding:6px; margin-bottom:24px; box-shadow:0 1px 3px rgba(0,0,0,0.05); overflow-x:auto; }
.wo-tab { padding:12px 20px; border-radius:8px; font-size:0.9rem; font-weight:500; color:#64748b; text-decoration:none; white-space:nowrap; transition:all 0.2s; }
.wo-tab:hover { background:#f8fafc; }
.wo-detail-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08); }
.wo-header {
    background: #006db2;
    color: white;
    padding: 28px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}
.wo-header-meta { display: flex; gap: 24px; font-size: 14px; opacity: 0.95; flex-wrap: wrap; }
.wo-header-title { font-size: 28px; font-weight: 700; margin: 0 0 8px 0; }
.wo-company-info { display: flex; align-items: center; gap: 16px; }
.wo-logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    color: #006db2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
.wo-company-details h3 { font-size: 1.1rem; margin: 0 0 6px; }
.wo-company-details p { margin: 0; font-size: 0.8rem; line-height: 1.4; opacity: 0.9; }
.wo-status-badge { padding:6px 14px; border-radius:20px; font-size:0.75rem; font-weight:600; text-transform:uppercase; }
.wo-status-badge.pending { background:#fef3c7; color:#d97706; }
.wo-status-badge.approved { background:#dbeafe; color:#2563eb; }
.wo-status-badge.completed { background:#dcfce7; color:#16a34a; }
.wo-status-badge.invoiced { background:#d1fae5; color:#059669; }
.wo-status-badge.rejected { background:#fee2e2; color:#dc2626; }
.wo-info-grid { display:grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.wo-info-row { display:flex; justify-content:space-between; align-items:flex-start; padding:12px 0; border-bottom:1px solid #f1f5f9; }
.wo-info-label { font-size:14px; color:#64748b; font-weight:500; }
.wo-info-value { font-size:14px; color:#0f172a; font-weight:600; text-align:right; }
.wo-body { padding: 24px; }
.wo-section { margin-top: 20px; }
.wo-text { color: #374151; }
.wo-meta-grid { display:grid; grid-template-columns: repeat(2, minmax(140px, 1fr)); gap: 12px; min-width: 280px; }
.wo-meta-item { background: rgba(255, 255, 255, 0.18); padding: 10px 12px; border-radius: 10px; backdrop-filter: blur(10px); }
.wo-meta-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.85; }
.wo-meta-value { font-weight: 700; }
.wo-status-pill { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.wo-status-pill.pending { background: #fde68a; color: #92400e; }
.wo-status-pill.estimate_requested { background: #e0f2fe; color: #0369a1; }
.wo-status-pill.estimated { background: #e0f2fe; color: #0369a1; }
.wo-status-pill.approved { background: #dbeafe; color: #1d4ed8; }
.wo-status-pill.scheduled { background: #d1fae5; color: #047857; }
.wo-status-pill.in_progress { background: #e0f2fe; color: #0284c7; }
.wo-status-pill.completed { background: #dcfce7; color: #166534; }
.wo-status-pill.invoiced { background: #d1fae5; color: #047857; }
.wo-status-pill.closed { background: #e2e8f0; color: #475569; }
.wo-status-pill.cancelled { background: #fee2e2; color: #b91c1c; }
.wo-status-pill.draft { background: #e2e8f0; color: #475569; }

.wo-info-card { background: #fff; border-radius: 14px; padding: 18px; box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06); }
.wo-info-section h3 { color:#006db2; font-size:0.95rem; font-weight:700; margin-bottom:12px; padding-bottom:8px; border-bottom:2px solid #006db2; }
.wo-info-card .wo-info-row { display:grid; grid-template-columns: 130px 1fr; gap: 8px; }
.wo-info-card .wo-info-value { text-align: left; font-weight: 600; }
.wo-section-card { background:#fff; border-radius:14px; padding:18px; box-shadow:0 6px 18px rgba(15, 23, 42, 0.06); }
.wo-checklist { list-style: none; padding: 0; margin: 0; }
.wo-checklist li { padding-left: 20px; position: relative; margin-bottom: 10px; color: #374151; }
.wo-checklist li:before { content: "\2713"; position: absolute; left: 0; top: 0; color: #006db2; font-weight: 800; }
.wo-textbox { background: #f8fafc; border: 1px solid #e2e8f0; padding: 12px 14px; border-radius: 10px; color: #374151; }
.wo-notes { background: #fff7ed; border-left: 4px solid #f59e0b; }
.wo-notes .wo-textbox { background: #fff7ed; border-color: #fed7aa; }

.wo-recent-title { font-weight: 700; color: #006db2; font-size: 0.9rem; }
.wo-recent-sub { color: #6b7280; font-size: 0.78rem; }
.wo-stat-item { background: #f8fafc; border-radius: 10px; padding: 12px 14px; border-left: 4px solid #006db2; }
.wo-stat-item:nth-child(2) { border-left-color: #4a7ba7; }
.wo-stat-item:nth-child(3) { border-left-color: #f59e0b; }
.wo-stat-item + .wo-stat-item { margin-top: 10px; }

@media (max-width: 1024px) {
    .wo-header { flex-direction: column; }
    .wo-meta-grid { grid-template-columns: repeat(2, minmax(140px, 1fr)); width: 100%; }
}

@media (max-width: 768px) {
    .wo-cta-grid { grid-template-columns: 1fr; }
    .wo-info-grid { grid-template-columns: 1fr; }
    .wo-meta-grid { grid-template-columns: 1fr; }
}

/* ============================================================================
   NOTIFICATION DROPDOWN (ADMIN HEADER)
   ========================================================================= */
.notif-bell { position: relative; cursor: pointer; }
.notif-bell i { font-size: 20px; color: #6b7280; }
.notif-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: 2px solid #fff;
}
.notif-badge.hidden { display: none; }
.notif-dropdown {
    display: none;
    position: absolute;
    top: 70px;
    right: 20px;
    width: 400px;
    max-height: 600px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 9999;
    overflow: hidden;
}
.notif-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9fafb;
}
.notif-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}
.notif-actions { display: flex; gap: 8px; }
.btn-notif {
    padding: 6px 12px;
    background: #006db2;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    font-weight: 600;
}
.btn-notif.secondary { background: #4a7ba7; text-decoration: none; }
.btn-notif:hover { filter: brightness(0.95); }

/* ============================================================================
   UTILITIES
   ========================================================================= */
.fs-16x { font-size: 1.6rem; }
.avatar-40 { width:40px; height:40px; object-fit:cover; }
.avatar-120 { width:120px; height:120px; object-fit:cover; }
.fs-25x { font-size: 2.5rem; }
.avatar-80 { width:80px; height:80px; object-fit:cover; }
.avatar-64 { width:64px; height:64px; object-fit:cover; }


/* ============================================================================
   DETAIL PAGE (ADMIN SHOW PAGES)
   ========================================================================= */
.detail-container { max-width: 900px; margin: 0 auto; }
.detail-page-header { margin-bottom: 2rem; }
.detail-page-title { font-size: 1.8rem; font-weight: 600; margin-bottom: 0.5rem; }
.detail-stack { display: grid; gap: 1.5rem; }
.detail-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.detail-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.75rem;
}
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.detail-label { font-size: 0.875rem; color: #6b7280; margin-bottom: 0.25rem; }
.detail-value { font-weight: 600; }
.detail-value--lg { font-size: 1.5rem; font-weight: 700; }
.detail-value--success { color: #22c55e; }
.detail-value--mono { font-family: monospace; font-size: 0.875rem; }
.detail-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.detail-notes { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid #e5e7eb; }
.detail-notes-box { background: #f9fafb; padding: 1rem; border-radius: 8px; }

/* Detail highlight blocks */
.detail-highlight {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid;
}
.detail-highlight--stripe { background: #ede9fe; border-left-color: #8b5cf6; }
.detail-highlight--danger { background: #fef2f2; border-left-color: #ef4444; }
.detail-highlight-title {
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.detail-highlight--stripe .detail-highlight-title { color: #5b21b6; }
.detail-highlight--danger .detail-highlight-title { color: #991b1b; }

/* Modal */
.modal-backdrop {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.modal-backdrop.is-open { display: flex; }
.modal-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.modal-title { font-size: 1.5rem; font-weight: 600; margin: 0; }
.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
}
.modal-info-box {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
}
.modal-field { margin-bottom: 1.5rem; }
.modal-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}
.modal-field input,
.modal-field textarea {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.95rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
}
.modal-field .field-hint { font-size: 0.8125rem; color: #6b7280; margin-top: 0.25rem; }
.modal-footer { display: flex; gap: 1rem; justify-content: flex-end; }

/* Rating stars */
.rating-stars { color: #f59e0b; }
.rating-stars--lg { font-size: 1.5rem; }
.rating-score { color: #6b7280; font-size: 1rem; }
.comment-box { background: #f9fafb; padding: 1rem; border-radius: 8px; }

/* Rating layout (2fr 1fr sidebar) */
.rating-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; margin-top: 2rem; }

/* Info list (vertical label/value pairs) */
.info-list { display: flex; flex-direction: column; gap: 1rem; }
.info-item label { font-size: 0.875rem; color: #6b7280; margin-bottom: 0.25rem; display: block; }
.info-item div { font-weight: 600; color: #111827; }

/* Analytics */
.analytics-header { display: flex; justify-content: space-between; align-items: center; }
.analytics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 12px; }
.analytics-section { margin-top: 18px; }
.tile p { margin: 6px 0; }

/* CRUD table */
.crud-table-wrap { overflow-x: auto; }
.crud-table { width: 100%; border-collapse: collapse; border: 1px solid #e5e7eb; border-radius: 8px; }
.crud-table th { padding: 12px; text-align: left; font-weight: 600; color: #0f172a; background: #f9fafb; border-bottom: 2px solid #e5e7eb; }
.crud-table th.text-center { text-align: center; }
.crud-table td { padding: 12px; border-bottom: 1px solid #e5e7eb; }
.crud-table td.text-center { text-align: center; }
.crud-table .cell-label { color: #0f172a; font-weight: 600; }
.crud-table .cell-hint { font-size: 13px; color: #6b7280; }

/* Form container */
.form-container { max-width: 800px; }

/* CRUD section separator */
.crud-section-header { margin: 24px 0 12px 0; font-size: 16px; font-weight: 700; color: #0f172a; border-top: 1px solid #e5e7eb; padding-top: 24px; }
.crud-section-desc { margin: 0 0 16px 0; font-size: 14px; color: #6b7280; }

/* Form utilities */
.form-input--narrow { max-width: 200px; }
.form-checkbox--lg { width: 20px; height: 20px; cursor: pointer; }

/* Image preview */
.image-preview { margin-top: 8px; border-radius: 12px; overflow: hidden; max-width: 180px; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12); }
.image-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ============================================================================
   CUSTOMER BOOKING SHOW PAGE
   ========================================================================= */

/* Layout grid */
.cbk-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr);
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: start;
}

/* Section card */
.cbk-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
}
.cbk-section--mb { margin-bottom: 2rem; }
.cbk-section-header {
    background: #006db2;
    padding: 1.25rem 1.5rem;
    border-bottom: 2px solid #e5e7eb;
}
.cbk-section-header h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.cbk-section-header i { color: #4a7ba7; font-size: 1.125rem; }
.cbk-section-body { padding: 1.5rem; }

/* Action buttons */
.cbk-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.cbk-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    transition: all 0.2s;
    width: 100%;
}
.cbk-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.cbk-btn--primary { background: #006db2; color: white; }
.cbk-btn--secondary { background: #6b7280; color: white; }
.cbk-btn--danger { background: #dc2626; color: white; }
.cbk-btn--outline { background: transparent; border: 2px solid #d1d5db; color: #6b7280; }

/* Timeline */
.tl { position: relative; padding-left: 2rem; }
.tl::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}
.tl-item { position: relative; margin-bottom: 1.5rem; }
.tl-item:last-child { margin-bottom: 0; }
.tl-dot {
    position: absolute;
    left: -1.5rem;
    top: 0.25rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    border: 3px solid #4a7ba7;
}
.tl-dot--done { background: #10b981; border-color: #10b981; }
.tl-dot--cancelled { border-color: #dc2626; background: #fee2e2; }
.tl-body { padding-left: 1rem; }
.tl-time { font-size: 0.8125rem; color: #6b7280; margin-bottom: 0.25rem; }
.tl-time--danger { color: #dc2626; }
.tl-title { font-size: 0.9375rem; color: #111827; font-weight: 600; }
.tl-title--danger { color: #dc2626; }
.tl-hint { font-size: 12px; color: #6b7280; margin-top: 4px; }
.tl-hint--danger { font-size: 12px; color: #991b1b; margin-top: 4px; }
.tl-icon { margin-right: 4px; }
.tl-icon--success { color: #10b981; }
.tl-icon--muted { color: #6b7280; }
.tl-icon--primary { color: #4a7ba7; }

/* Team card */
.cbk-team {
    background: #006db2;
    border: 2px solid #bae6fd;
    border-radius: 8px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.cbk-team-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #006db2;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}
.cbk-team-info h3 { margin: 0 0 0.25rem 0; font-size: 1.125rem; color: #111827; }
.cbk-team-info p { margin: 0.2rem 0; color: #6b7280; font-size: 0.875rem; }

/* Notes box */
.cbk-notes { background: #fef3c7; border-left: 4px solid #f59e0b; padding: 1rem; border-radius: 6px; }
.cbk-notes p { margin: 0; color: #78350f; line-height: 1.6; }

/* Alert */
.cbk-alert { padding: 1rem; border-radius: 8px; margin-bottom: 1.5rem; }
.cbk-alert--success { background: #d1fae5; border: 1px solid #6ee7b7; color: #065f46; }
.cbk-alert--warning { background: #fef3c7; border: 1px solid #fcd34d; color: #92400e; }

/* Right column booking card */
.cbk-right .modern-booking-card { max-width: 100%; margin: 0; }
.cbk-right > .modern-booking-card + * { margin-top: 2rem; }

@media (max-width: 968px) {
    .cbk-grid { grid-template-columns: 1fr; }
}

/* ============================================================================
   CUSTOMER PROFILE EDIT PAGE
   ========================================================================= */

.profile-header {
    background: #006db2;
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.profile-header h1 { margin: 0; font-size: 2rem; font-weight: 700; }
.profile-header .back-button {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 10px 16px;
    border-radius: 8px;
    margin-bottom: 0;
}
.profile-header .back-button:hover { color: #e2e8f0; }
.profile-grid { display: grid; grid-template-columns: 320px 1fr; gap: 2rem; }

/* Avatar */
.avatar-upload { text-align: center; }
.avatar-preview {
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #e5e7eb;
    background: #006db2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 5rem;
    font-weight: 700;
}
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.upload-btn-wrapper { position: relative; display: inline-block; margin-bottom: 1rem; }
.upload-btn-wrapper input[type=file] {
    position: absolute;
    left: 0; top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Button variant for remove photo */
.cbk-btn--remove { background: transparent; color: #dc2626; border: 2px solid #dc2626; }

/* ============================================================================
   CUSTOMER PORTAL FORMS
   ========================================================================= */

.customer-portal .form-group { margin-bottom: 1.5rem; }
.customer-portal .form-group:last-child { margin-bottom: 0; }
.customer-portal .form-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}
.customer-portal .form-label.required::after { content: ' *'; color: #dc2626; }
.customer-portal .form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9375rem;
    transition: all 0.2s;
    box-sizing: border-box;
}
.customer-portal .form-control:focus {
    outline: none;
    border-color: #4a7ba7;
    box-shadow: 0 0 0 3px rgba(74, 123, 167, 0.1);
}
.customer-portal .form-text { font-size: 0.8125rem; color: #6b7280; margin-top: 0.375rem; display: block; }
.customer-portal .invalid-feedback { font-size: 0.8125rem; color: #dc2626; margin-top: 0.375rem; display: block; }
.customer-portal .is-invalid { border-color: #dc2626; }
.customer-portal .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.customer-portal .form-actions { display: flex; gap: 1rem; margin-top: 2rem; }
.profile-hint { color: #6b7280; margin-bottom: 1.5rem; font-size: 0.9375rem; }

/* Alert (danger variant) */
.cbk-alert--danger { background: #fee2e2; border: 1px solid #fecaca; color: #991b1b; }

@media (max-width: 968px) {
    .profile-grid { grid-template-columns: 1fr; }
    .customer-portal .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .detail-grid { grid-template-columns: 1fr; }
    .detail-actions { flex-direction: column; }
    .modal-content { width: 95%; padding: 1.5rem; }
    .rating-layout { grid-template-columns: 1fr; }
}

/* ============================================================================
   RESPONSIVE UTILITIES
   ========================================================================= */

@media (max-width: 768px) {
    .x-card {
        padding: 20px;
        border-radius: 12px;
    }

    .x-card--lg {
        padding: 24px;
    }

    .x-card__title {
        font-size: 18px;
    }
}
