@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg-body: #f5f5f7; /* Estilo Apple Light Gray */
    --bg-panel: #ffffff;
    --bg-card: #ffffff;
    --bg-hover: #f5f5f5;
    --primary: #0071e3; /* Apple Blue */
    --primary-hover: #0077ED;
    --text-main: #1d1d1f;
    --text-muted: #86868b;
    --border: #d2d2d7;
    --green: #10b981;
    --green-bg: #e5f7ed;
    --yellow: #f59e0b;
    --yellow-bg: #fef3c7;
    --red: #ef4444;
    --red-bg: #fee2e2;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
    --radius-lg: 20px;
    --radius-md: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

#b4-admin-wrap { 
    font-family: var(--font); 
    background-color: var(--bg-body); 
    color: var(--text-main); 
    line-height: 1.5; 
    -webkit-font-smoothing: antialiased; 
}

/* ANIMATIONS */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUpFade { 
    from { opacity: 0; transform: translate(-50%, 20px) scale(0.98); } 
    to { opacity: 1; transform: translate(-50%, 0) scale(1); } 
}

/* Base Buttons */
.btn { 
    padding: 12px 20px; 
    border-radius: 98px; 
    border: none; 
    font-family: var(--font); 
    font-size: 14px; 
    font-weight: 600; 
    cursor: pointer; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1); 
    white-space: nowrap; 
}
.btn:active { transform: scale(0.96); }
.btn-primary { background-color: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(0, 113, 227, 0.2); }
.btn-primary:hover { background-color: var(--primary-hover); box-shadow: 0 4px 14px rgba(0, 113, 227, 0.4); }
.btn-secondary { background-color: #e8e8ed; color: var(--text-main); }
.btn-secondary:hover { background-color: #d2d2d7; }
.btn-outline { background-color: transparent; color: var(--text-main); border: 1px solid var(--border); }
.btn-outline:hover { background-color: var(--bg-hover); }
.btn-success { background-color: var(--green-bg); color: #059669; }
.btn-danger { background-color: var(--red-bg); color: #dc2626; }
.w-100 { width: 100%; }

/* Inputs */
.input-dark, .input-field { 
    background-color: #fff; 
    border: 1px solid var(--border); 
    color: var(--text-main); 
    padding: 12px 16px; 
    border-radius: var(--radius-md); 
    font-family: var(--font); 
    font-size: 14px; 
    width: 100%; 
    transition: all 0.2s; 
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.02); 
}
.input-dark:focus, .input-field:focus { 
    outline: none; 
    border-color: var(--primary); 
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15); 
}
.inline-input { display: inline-block; width: auto; padding: 6px 12px; margin-left: 8px; }

/* TELA 1: WIDGET (Liquid Water Effect) */
.b4-widget-container { z-index: 10; 
    position: relative; margin: 0 auto; 
     
     
    width: 100%; 
    max-width: 100%; 
    background-color: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(28px) saturate(200%); 
    -webkit-backdrop-filter: blur(28px) saturate(200%); 
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 28px;
    padding: 8px 18px; 
    display: flex; 
    gap: 16px; 
    align-items: center; 
    justify-content: center;
    box-shadow: 0 16px 40px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.8);
    z-index: 100; 
    animation: slideUpFade 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards; 
}
.widget-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.widget-icon { 
    width: 38px; height: 38px; 
    font-size: 18px;
    background: linear-gradient(135deg, #0071e3, #4bb1ff);
    color: #fff; 
    border-radius: 12px; 
    display: flex; align-items: center; justify-content: center; 
    box-shadow: 0 6px 14px rgba(0, 113, 227, 0.35), inset 0 1px 3px rgba(255,255,255,0.4); 
}
.widget-buttons { display: flex; gap: 8px; }
.widget-buttons .btn { padding: 8px 14px; font-size: 13px; border-radius: 98px; }
.widget-carousel { display: flex; gap: 10px; overflow-x: auto; flex: 1; padding-bottom: 4px; scrollbar-width: none; }
.widget-carousel::-webkit-scrollbar { display: none; }
.mini-card { 
    background-color: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.7); 
    border-radius: 16px; 
    padding: 8px 12px; 
    min-width: 210px; 
    display: flex; gap: 12px; align-items: center; 
    box-shadow: 0 2px 12px rgba(0,0,0,0.03); 
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s, background-color 0.3s; 
    cursor: pointer; 
}
.mini-card:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 6px 18px rgba(0,0,0,0.07); 
    border-color: rgba(255,255,255,1); 
    background-color: rgba(255, 255, 255, 0.9);
}
.mini-card .mc-date { text-align: center; line-height: 1; color: var(--primary); min-width: 34px; }
.mini-card .mc-date strong { display: block; font-size: 18px; letter-spacing: -0.5px; }
.mini-card .mc-date small { font-size: 9px; font-weight: 700; text-transform: uppercase; }
.mini-card .mc-info { font-size: 11px; }
.mini-card .mc-info strong { display: block; font-size: 12px; margin-bottom: 2px; color: var(--text-main); font-weight: 600; line-height: 1.3; }
.mini-card .mc-info small { color: var(--text-muted); display: flex; align-items: center; gap: 4px; font-weight: 500;}

/* MODALS */
.modal-overlay { 
    position: fixed; margin: 0; top: 0; left: 0; right: 0; bottom: 0; z-index: 999999; 
    background-color: rgba(0,0,0,0.4); 
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); 
    display: none; align-items: center; justify-content: center; 
    z-index: 1000; opacity: 0; transition: opacity 0.3s ease; 
}
.modal-overlay.active { display: flex; opacity: 1; }
.modal-content { 
    background-color: var(--bg-panel); 
    border-radius: 28px; 
    width: 100%; max-width: 100%; max-height: 90vh; overflow-y: auto; 
    position: relative; 
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); 
    transform: scale(0.95) translateY(20px); opacity: 0; 
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
}
.modal-overlay.active .modal-content { transform: scale(1) translateY(0); opacity: 1; }
.modal-close { 
    position: absolute; top: 24px; right: 24px; 
    background: #f5f5f7; border: none; color: var(--text-muted); 
    width: 36px; height: 36px; border-radius: 50%; font-size: 18px; 
    cursor: pointer; display: flex; align-items: center; justify-content: center; 
    transition: all 0.2s; 
}
.modal-close:hover { background: #e8e8ed; color: var(--text-main); transform: scale(1.05); }
.modal-header { padding: 32px 32px 20px; border-bottom: 1px solid var(--border); }
.modal-header .badge { 
    background-color: #eef2ff; color: var(--primary); 
    font-size: 11px; padding: 6px 12px; border-radius: 8px; 
    font-weight: 700; display: inline-block; margin-bottom: 12px; 
    letter-spacing: 0.5px;
}
.modal-header h2 { font-size: 28px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.5px; }
.modal-header p { color: var(--text-muted); font-size: 15px; }

.split-view { display: flex; }
.split-view > div { flex: 1; padding: 32px; }
.split-view > div:first-child { border-right: 1px solid var(--border); }

/* TELA 2: CALENDAR */
.calendar-controls { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.calendar-controls button { background: #f5f5f7; border: none; width: 36px; height: 36px; border-radius: 50%; color: var(--text-main); font-size: 16px; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.calendar-controls button:hover { background: #e8e8ed; }
.calendar-controls strong { font-size: 18px; font-weight: 600; letter-spacing: -0.3px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; text-align: center; }
.cal-day-name { font-size: 12px; color: var(--text-muted); font-weight: 600; margin-bottom: 12px; }
.cal-day { 
    padding: 8px; border-radius: 50%; width: 44px; height: 44px; margin: 0 auto; 
    display: flex; flex-direction: column; align-items: center; justify-content: center; 
    font-size: 15px; font-weight: 500; cursor: pointer; position: relative; 
    transition: all 0.2s; 
}
.cal-day:hover { background-color: #f5f5f7; }
.cal-day.active { background-color: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(0,113,227,0.3); }
.cal-day.has-meeting::after { 
    content: ''; width: 5px; height: 5px; background-color: var(--green); 
    border-radius: 50%; position: absolute; bottom: 6px; 
}
.cal-legend { font-size: 13px; color: var(--text-muted); margin-top: 32px; display: flex; align-items: center; gap: 8px; font-weight: 500;}
.cal-legend .dot { width: 8px; height: 8px; background-color: var(--green); border-radius: 50%; display: inline-block; }

.meetings-pane-header { margin-bottom: 24px; }
.meetings-pane-header h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.3px; }
.meetings-list { display: flex; flex-direction: column; gap: 16px; max-height: 400px; overflow-y: auto; margin-bottom: 24px; padding-right: 12px; }
.meetings-list::-webkit-scrollbar { width: 6px; }
.meetings-list::-webkit-scrollbar-thumb { background: #d2d2d7; border-radius: 6px; }
.meeting-item { 
    background-color: #fff; border: 1px solid rgba(0,0,0,0.06); box-shadow: var(--shadow-sm); 
    border-radius: var(--radius-md); padding: 18px; display: flex; gap: 16px; align-items: center; 
    transition: transform 0.2s, box-shadow 0.2s; 
}
.meeting-item:hover { transform: translateX(4px); box-shadow: var(--shadow-md); border-color: rgba(0,0,0,0.1); }
.meeting-item .time { font-weight: 700; color: var(--primary); font-size: 16px; min-width: 50px; }
.meeting-item .details { flex: 1; }
.meeting-item .details strong { display: block; font-size: 15px; color: var(--text-main); font-weight: 600; margin-bottom: 2px; }
.meeting-item .details small { color: var(--text-muted); font-size: 13px; font-weight: 500; }
.status-badge { font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 8px; display: inline-flex; align-items: center; gap: 6px; }
.status-badge.green { background-color: var(--green-bg); color: #059669; }
.status-badge.yellow { background-color: var(--yellow-bg); color: #d97706; }

/* TELA 3: FORM */
.summary-pane { display: flex; flex-direction: column; gap: 24px; }
.summary-header { display: flex; justify-content: space-between; align-items: center; }
.summary-item { display: flex; gap: 16px; align-items: flex-start; }
.summary-item i { font-style: normal; font-size: 24px; background: #f5f5f7; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 14px; color: var(--primary); }
.summary-item small { display: block; color: var(--text-muted); font-size: 13px; font-weight: 600; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px;}
.summary-item strong { display: block; font-size: 16px; font-weight: 600; color: var(--text-main); }
.summary-item span { display: block; font-size: 14px; color: var(--text-muted); margin-top: 2px;}
.summary-info-box { background-color: #f0f7ff; border: 1px solid #cce4ff; padding: 20px; border-radius: var(--radius-md); margin-top: auto; }
.summary-info-box strong { display: block; color: var(--primary); margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.summary-info-box p { font-size: 14px; color: #4b5563; line-height: 1.6; }

.form-pane form { display: flex; flex-direction: column; gap: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--text-main); }
.form-info-strip { background-color: #f5f5f7; padding: 16px; border-radius: var(--radius-md); font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 12px; font-weight: 500;}
.form-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 16px; }

/* TELA 4: ADMIN */
.admin-body { background-color: var(--bg-body); }
.admin-layout { display: flex; height: 100vh; overflow: hidden; }
.admin-sidebar { width: 280px; background-color: #fff; border-right: 1px solid var(--border); display: flex; flex-direction: column; z-index: 10; box-shadow: var(--shadow-sm); }
.admin-logo { padding: 32px 24px; border-bottom: 1px solid rgba(0,0,0,0.05); }
.admin-logo h2 { font-weight: 700; letter-spacing: -0.5px; font-size: 22px; }
.admin-nav { padding: 24px 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
.nav-label { font-size: 12px; font-weight: 700; color: var(--text-muted); margin-bottom: 8px; padding-left: 12px; letter-spacing: 0.5px; }
.mt-4 { margin-top: 32px; }
.nav-item { padding: 12px 16px; border-radius: 12px; color: #4b5563; text-decoration: none; font-size: 15px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; transition: all 0.2s; }
.nav-item:hover { background-color: #f5f5f7; color: var(--text-main); }
.nav-item.active { background-color: #eef2ff; color: var(--primary); font-weight: 600; }
.nav-item.active-sub { background-color: #f5f5f7; color: var(--text-main); font-weight: 600; }
.badge-count { background: #e5e7eb; padding: 4px 10px; border-radius: 12px; font-size: 12px; font-weight: 700; color: #4b5563; }
.badge-count.green { background: var(--green-bg); color: #059669; }
.badge-count.red { background: var(--red-bg); color: #dc2626; }
.admin-user { padding: 24px; border-top: 1px solid rgba(0,0,0,0.05); display: flex; align-items: center; gap: 16px; background: #fafafa; }
.admin-user .avatar { width: 44px; height: 44px; background: linear-gradient(135deg, var(--primary), #60a5fa); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; color: #fff; font-size: 16px; box-shadow: var(--shadow-sm); }
.admin-user small { display: block; color: var(--text-muted); font-size: 13px; font-weight: 500;}

.admin-main { flex: 1; display: flex; flex-direction: column; background-color: var(--bg-body); overflow: hidden; }
.admin-header { padding: 24px 40px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; background: #fff; z-index: 5; box-shadow: var(--shadow-sm); }
.breadcrumbs { color: var(--text-muted); font-size: 15px; font-weight: 500;}
.breadcrumbs strong { color: var(--text-main); font-weight: 600; }

.view-section { flex: 1; overflow-y: auto; display: none; flex-direction: column; width: 100%; }
.admin-content { display: flex; flex: 1; overflow: hidden; height: 100%; }
.admin-list-section { width: 40%; border-right: 1px solid var(--border); padding: 40px; overflow-y: auto; display: flex; flex-direction: column; gap: 24px; background: #fff; }
.admin-list-section h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.5px; }
.admin-list-section p { font-size: 15px; color: var(--text-muted); }
.filters { display: flex; gap: 12px; }
.request-list { display: flex; flex-direction: column; gap: 16px; }
.req-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; cursor: pointer; transition: all 0.2s; display: flex; gap: 20px; box-shadow: var(--shadow-sm); }
.req-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #cbd5e1; }
.req-card.active { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(0,113,227,0.3); background: #f8fafc; }
.req-date-box { text-align: center; line-height: 1.2; min-width: 50px; color: var(--primary); }
.req-date-box strong { font-size: 28px; font-weight: 700; display: block; letter-spacing: -1px;}
.req-date-box small { font-size: 13px; font-weight: 700; text-transform: uppercase; }
.req-info { flex: 1; }
.req-info .r-time { font-size: 14px; color: #059669; font-weight: 700; margin-bottom: 6px; }
.req-info strong { display: block; font-size: 16px; font-weight: 600; margin-bottom: 4px; color: var(--text-main); }
.req-info p { font-size: 14px; color: #4b5563; margin-bottom: 4px; font-weight: 500;}
.req-info small { font-size: 13px; color: var(--text-muted); }

.admin-details-section { width: 60%; padding: 40px 60px; overflow-y: auto; display: flex; flex-direction: column; gap: 32px; background: var(--bg-body); }
.details-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); padding-bottom: 24px; }
.details-header h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.5px; }
.details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.d-item { display: flex; gap: 16px; align-items: flex-start; background: #fff; padding: 20px; border-radius: var(--radius-md); border: 1px solid rgba(0,0,0,0.05); box-shadow: var(--shadow-sm); }
.d-item i { font-style: normal; font-size: 24px; color: var(--primary); }
.d-item small { display: block; color: var(--text-muted); font-size: 13px; font-weight: 600; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px;}
.d-item strong { font-size: 15px; font-weight: 600; color: var(--text-main); }
.d-text-group { background: #fff; padding: 24px; border-radius: var(--radius-md); border: 1px solid rgba(0,0,0,0.05); box-shadow: var(--shadow-sm); }
.d-text-group small { display: block; color: var(--text-muted); font-size: 14px; margin-bottom: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;}
.d-text-group p { font-size: 15px; line-height: 1.6; color: #374151; }
.decision-area { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 32px; }
.decision-buttons { display: flex; gap: 16px; }

/* RESPONSIVE DESIGN (MOBILE & TABLET) */
@media (max-width: 992px) {
    .b4-widget-container { z-index: 10; 
        flex-direction: column; 
        width: calc(100% - 32px); 
        padding: 20px; 
        border-radius: 20px; 
        gap: 16px; 
        animation: none; /* simple display on mobile */
    }
    .widget-actions { width: 100%; display: flex; flex-direction: row; align-items: center; gap: 12px; flex-wrap: wrap; }
    .widget-icon { width: 40px; height: 40px; flex-shrink: 0; }
    .widget-buttons { display: flex; flex-direction: row; gap: 8px; flex: 1; min-width: 200px; flex-wrap: wrap; justify-content: center; }
    .widget-buttons .btn { flex: 1; min-width: 140px; height: auto !important; padding: 10px; font-size: 13px; line-height: 1.3; white-space: normal !important; text-align: center; }
    .widget-carousel { width: 100%; }
    .mini-card { min-width: 220px; }
    
    .split-view { flex-direction: column; }
    .split-view > div { padding: 24px 20px; border-right: none !important; }
    .split-view > div:first-child { border-bottom: 1px solid var(--border); }
    .modal-content { width: 95%; max-height: 85vh; border-radius: 20px; }
    .modal-header { padding: 24px 20px 16px; }

    .admin-layout { flex-direction: column; height: auto; min-height: 100vh; overflow: visible;}
    .admin-sidebar { width: 100%; height: auto; border-right: none; border-bottom: 1px solid var(--border); box-shadow: none;}
    .admin-nav { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; padding: 16px; gap: 8px; -webkit-overflow-scrolling: touch; }
    .nav-label { display: none; }
    .nav-item { white-space: nowrap; }
    
    .admin-main { height: auto; overflow: visible; display: block; }
    .view-section { overflow: visible !important; height: auto !important; display: none; }
    .view-section[style*="display: flex"] { display: flex !important; flex-direction: column; }
    
    .admin-content { flex-direction: column; height: auto; overflow: visible;}
    .admin-list-section { width: 100%; border-right: none; border-bottom: 1px solid var(--border); padding: 20px; overflow: visible;}
    .admin-details-section { width: 100%; padding: 20px; overflow: visible;}
    .details-grid { grid-template-columns: 1fr; }
    .filters { flex-direction: column; }
    .admin-header { flex-direction: column; gap: 16px; align-items: flex-start; padding: 20px;}
}

/* Toggle Switch */
.toggle-slider { transition: background 0.3s; }
input[type="checkbox"]:checked + .toggle-slider { background: var(--primary) !important; }
input[type="checkbox"]:checked + .toggle-slider::before { transform: translateX(24px); }
.toggle-slider::before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Interatividade Visão Geral */
.stat-card { transition: all 0.2s; }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #cbd5e1; }
.activity-item { transition: all 0.2s; border-radius: 8px; padding: 12px; margin: -12px; }
.activity-item:hover { background-color: #f8fafc; }

/* ── Admin-specific extras ─────────────────────────── */
#b4-admin-wrap .tab-bar { display: flex; gap: 4px; background: #f5f5f7; padding: 4px; border-radius: 14px; }
#b4-admin-wrap .tab-btn { flex:1; padding: 9px 14px; border: none; background: transparent; border-radius: 10px; font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: all 0.2s; white-space: nowrap; }
#b4-admin-wrap .tab-btn.active { background: #fff; color: var(--text-main); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
#b4-admin-wrap .tab-btn .cnt { display: inline-block; min-width: 20px; height: 20px; border-radius: 10px; font-size: 11px; font-weight: 700; text-align: center; line-height: 20px; margin-left: 6px; background: #e5e7eb; color: #4b5563; }
#b4-admin-wrap .tab-btn.active .cnt.yellow { background: var(--yellow-bg); color: #d97706; }
#b4-admin-wrap .tab-btn.active .cnt.green  { background: var(--green-bg); color: #059669; }
#b4-admin-wrap .tab-btn.active .cnt.red    { background: var(--red-bg); color: #dc2626; }

#b4-admin-wrap .stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 24px 32px 0; }
#b4-admin-wrap .stat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow-sm); }
#b4-admin-wrap .stat-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
#b4-admin-wrap .stat-card strong { display: block; font-size: 26px; font-weight: 700; letter-spacing: -1px; margin-bottom: 2px; }
#b4-admin-wrap .stat-card small { font-size: 13px; color: var(--text-muted); font-weight: 500; }

#b4-admin-wrap .empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; color: var(--text-muted); text-align: center; gap: 12px; }
#b4-admin-wrap .empty-state .es-icon { font-size: 48px; margin-bottom: 8px; }
#b4-admin-wrap .empty-state strong { font-size: 16px; color: var(--text-main); font-weight: 600; }
#b4-admin-wrap .empty-state p { font-size: 14px; max-width: 280px; line-height: 1.6; }

#b4-admin-wrap .search-row { display: flex; gap: 10px; align-items: center; }
#b4-admin-wrap .search-row input { flex: 1; }
#b4-admin-wrap .search-row select { width: 160px; flex-shrink: 0; }

#b4-admin-wrap .approved-list { display: flex; flex-direction: column; gap: 12px; }
#b4-admin-wrap .approved-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px 20px; display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow-sm); }
#b4-admin-wrap .approved-card .ac-date { min-width: 48px; text-align: center; color: var(--green); }
#b4-admin-wrap .approved-card .ac-date strong { display: block; font-size: 22px; font-weight: 700; letter-spacing: -0.5px; }
#b4-admin-wrap .approved-card .ac-date small { font-size: 10px; font-weight: 700; text-transform: uppercase; }
#b4-admin-wrap .approved-card .ac-info { flex: 1; }
#b4-admin-wrap .approved-card .ac-info strong { display: block; font-size: 14px; font-weight: 600; margin-bottom: 3px; }
#b4-admin-wrap .approved-card .ac-info small { font-size: 13px; color: var(--text-muted); }
#b4-admin-wrap .approved-card .ac-actions { display: flex; gap: 8px; flex-shrink: 0; }

#b4-admin-wrap .overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 24px 32px; }
#b4-admin-wrap .overview-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-sm); }
#b4-admin-wrap .activity-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--border); cursor: pointer;}
#b4-admin-wrap .activity-item:last-child { border-bottom: none; }
#b4-admin-wrap .activity-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
#b4-admin-wrap .activity-item p { font-size: 14px; color: var(--text-main); margin-bottom: 2px; }
#b4-admin-wrap .activity-item small { font-size: 12px; color: var(--text-muted); }

@media (max-width: 768px) {
    #b4-admin-wrap .stat-cards { grid-template-columns: 1fr 1fr; }
    #b4-admin-wrap .overview-grid { grid-template-columns: 1fr; padding: 16px; }
    #b4-admin-wrap .tab-bar { overflow-x: auto; }
    #b4-admin-wrap .search-row { flex-direction: column; }
    #b4-admin-wrap .search-row select { width: 100%; }
}

/* Override default WP styles to fix admin-layout taking over the screen improperly inside wrap */
#b4-admin-wrap { margin-top: 20px; font-family: 'Inter', sans-serif; }
#b4-admin-wrap .admin-layout { height: calc(100vh - 80px) !important; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }

@media (max-width: 768px) {
    #view-availability .grid-template-columns { grid-template-columns: 1fr !important; }
    #view-availability > div > div > div { flex-wrap: wrap; }
}

@media (max-width: 768px) {
    #view-availability > div > div > div { flex-wrap: wrap; }
    #view-availability .input-field[type="time"] { width: 100% !important; flex: 1; }
    #view-availability label { width: 100% !important; margin-bottom: 8px; }
}

@media (max-width: 768px) {
    .widget-icon { display: none !important; }
}
