/* WorkCompOffice - Frontend Styles */
.jb-booking-widget {
    max-width: 640px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: #1a1a1a;
    position: relative;
    line-height: 1.5;
}
.jb-booking-widget * { box-sizing: border-box; }
.jb-heading { font-size: 1.5rem; font-weight: 600; margin: 0 0 8px; color: #111; }
.jb-subheading { color: #666; margin: 0 0 20px; font-size: 0.95rem; }
.jb-breadcrumb { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 0.9rem; }
.jb-back { color: #3B82F6; text-decoration: none; font-weight: 500; }
.jb-back:hover { text-decoration: underline; }
.jb-breadcrumb span { color: #888; }
.jb-person-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.jb-person-card { display: flex; align-items: center; gap: 14px; padding: 16px; border: 2px solid #e5e7eb; border-radius: 10px; cursor: pointer; transition: all 0.15s ease; background: #fff; }
.jb-person-card:hover { border-color: #3B82F6; box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15); }
.jb-person-photo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.jb-person-initials { width: 52px; height: 52px; border-radius: 50%; background: #3B82F6; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 1.1rem; flex-shrink: 0; }
.jb-person-name { font-weight: 600; font-size: 1rem; }
.jb-person-title { color: #888; font-size: 0.85rem; margin-top: 2px; }
.jb-type-list { display: flex; flex-direction: column; gap: 10px; }
.jb-type-card { display: flex; align-items: flex-start; gap: 14px; padding: 16px; border: 2px solid #e5e7eb; border-radius: 10px; cursor: pointer; transition: all 0.15s ease; background: #fff; }
.jb-type-card:hover { border-color: #3B82F6; box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15); }
.jb-type-color { width: 4px; min-height: 40px; border-radius: 2px; flex-shrink: 0; align-self: stretch; }
.jb-type-name { font-weight: 600; font-size: 1rem; }
.jb-type-duration { color: #888; font-size: 0.85rem; margin-top: 2px; }
.jb-type-desc { color: #666; font-size: 0.85rem; margin-top: 6px; }
.jb-calendar { max-width: 380px; }
.jb-calendar-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.jb-cal-month { font-weight: 600; font-size: 1.1rem; }
.jb-cal-nav { background: none; border: 1px solid #ddd; border-radius: 6px; padding: 6px 12px; cursor: pointer; font-size: 1rem; color: #333; transition: all 0.15s; }
.jb-cal-nav:hover { background: #f3f4f6; border-color: #bbb; }
.jb-calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 0.8rem; font-weight: 600; color: #888; margin-bottom: 8px; }
.jb-calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.jb-cal-day, .jb-cal-empty { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 8px; font-size: 0.95rem; font-weight: 500; position: relative; min-height: 52px; }
.jb-cal-date-num { line-height: 1; }
.jb-cal-slot-count { font-size: 0.65rem; font-weight: 600; color: #dc2626; margin-top: 2px; opacity: 0.85; line-height: 1; }
.jb-cal-unavailable { color: #ccc; cursor: default; }
.jb-cal-past { color: #ddd; cursor: default; }
.jb-cal-available { background: #eff6ff; color: #3B82F6; cursor: pointer; font-weight: 600; transition: all 0.15s; }
.jb-cal-available:hover { background: #3B82F6; color: #fff; }
.jb-cal-available:hover .jb-cal-slot-count { color: rgba(255,255,255,0.8); }
.jb-time-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.jb-time-slot { padding: 12px 8px; border: 2px solid #e5e7eb; border-radius: 8px; background: #fff; cursor: pointer; font-size: 0.95rem; font-weight: 500; color: #3B82F6; text-align: center; transition: all 0.15s; }
.jb-time-slot:hover { border-color: #3B82F6; background: #3B82F6; color: #fff; }
.jb-booking-summary { background: #f8fafc; border-radius: 10px; padding: 16px; margin-bottom: 20px; border: 1px solid #e2e8f0; }
.jb-summary-item { font-size: 0.9rem; line-height: 1.6; }
.jb-form { display: flex; flex-direction: column; gap: 14px; }
.jb-field label { display: block; font-weight: 500; font-size: 0.9rem; margin-bottom: 4px; color: #333; }
.jb-required { color: #dc2626; }
.jb-field input, .jb-field textarea { width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 0.95rem; font-family: inherit; transition: border-color 0.15s; }
.jb-field input:focus, .jb-field textarea:focus { outline: none; border-color: #3B82F6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); }
.jb-btn { padding: 12px 24px; border: none; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.15s; font-family: inherit; }
.jb-btn-primary { background: #3B82F6; color: #fff; }
.jb-btn-primary:hover { background: #2563eb; }
.jb-btn-primary:disabled { background: #93c5fd; cursor: not-allowed; }
.jb-btn-secondary { background: #f3f4f6; color: #333; border: 1px solid #d1d5db; }
.jb-btn-secondary:hover { background: #e5e7eb; }
.jb-confirmation { text-align: center; padding: 40px 20px; }
.jb-confirm-icon { width: 64px; height: 64px; background: #10b981; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 16px; }
.jb-confirmation h3 { font-size: 1.5rem; margin: 0 0 8px; }
.jb-confirmation p { color: #666; margin-bottom: 20px; }
#jb-confirm-details { background: #f0fdf4; border-radius: 10px; padding: 16px; margin: 20px auto; max-width: 400px; text-align: left; }
.jb-loading { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,0.85); display: flex; align-items: center; justify-content: center; z-index: 100; border-radius: 10px; }
.jb-spinner { width: 36px; height: 36px; border: 3px solid #e5e7eb; border-top-color: #3B82F6; border-radius: 50%; animation: jb-spin 0.6s linear infinite; }
@keyframes jb-spin { to { transform: rotate(360deg); } }
.jb-empty, .jb-error { text-align: center; color: #888; padding: 20px; }
.jb-error { color: #dc2626; }
.jb-add-guest-link { color: #3B82F6; text-decoration: none; font-size: 0.9rem; font-weight: 500; display: inline-block; margin-top: 4px; }
.jb-add-guest-link:hover { text-decoration: underline; }
.jb-guest-row input { padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 0.9rem; font-family: inherit; }
.jb-guest-row input:focus { outline: none; border-color: #3B82F6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); }
@media (max-width: 480px) {
    .jb-person-grid { grid-template-columns: 1fr; }
    .jb-time-slots { grid-template-columns: repeat(3, 1fr); }
    .jb-heading { font-size: 1.25rem; }
}
