/* Massage Lab Staff Portal - Frontend Styles */
.mlsp-portal { max-width: 900px; margin: 0 auto; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }

/* Tabs */
.mlsp-tabs { display: flex; border-bottom: 2px solid #1a3a4a; margin-bottom: 24px; gap: 4px; }
.mlsp-tab { padding: 12px 20px; border: none; background: #f0f6f8; color: #1a3a4a; cursor: pointer; font-size: 14px; font-weight: 500; border-radius: 6px 6px 0 0; transition: all 0.2s; }
.mlsp-tab:hover { background: #d5e8f0; }
.mlsp-tab.active { background: #1a3a4a; color: #fff; }
.mlsp-tab-content { display: none; padding: 4px 0; }
.mlsp-tab-content.active { display: block; }

/* Fields */
.mlsp-field-group { margin-bottom: 20px; }
.mlsp-field-group label { display: block; font-weight: 600; margin-bottom: 6px; color: #1a3a4a; }
.mlsp-field-group input[type="text"], .mlsp-field-group input[type="email"], .mlsp-field-group input[type="url"],
.mlsp-field-group input[type="number"], .mlsp-field-group textarea, .mlsp-field-group select {
    width: 100%; padding: 10px 12px; border: 1px solid #ccc; border-radius: 6px; font-size: 14px; box-sizing: border-box;
}
.mlsp-field-group textarea { resize: vertical; }
.mlsp-form-row { display: flex; gap: 16px; }
.mlsp-half { flex: 1; }

/* iCal */
.mlsp-ical-row { display: flex; align-items: center; gap: 10px; }
.mlsp-ical-row input { flex: 1; }
.mlsp-status-valid { color: #28a745; font-size: 20px; font-weight: bold; }
.mlsp-status-invalid { color: #dc3545; font-size: 20px; font-weight: bold; }
.mlsp-status-pending { color: #999; font-size: 20px; }
.mlsp-help-accordion { margin-top: 8px; }
.mlsp-help-accordion summary { cursor: pointer; color: #2d5f73; font-size: 13px; }
.mlsp-help-content { padding: 12px; background: #f8f9fa; border-radius: 6px; margin-top: 8px; font-size: 13px; }
.mlsp-help-content p { margin: 6px 0; }

/* Checkboxes & Radios */
.mlsp-checkbox-group { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.mlsp-checkbox, .mlsp-radio { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 14px; }

/* Toggles */
.mlsp-toggle-group { display: flex; flex-direction: column; gap: 12px; }
.mlsp-toggle { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 14px; }
.mlsp-toggle input { width: 44px; height: 24px; appearance: none; background: #ccc; border-radius: 12px; position: relative; cursor: pointer; transition: background 0.3s; }
.mlsp-toggle input:checked { background: #1a3a4a; }
.mlsp-toggle input::before { content: ''; position: absolute; width: 20px; height: 20px; background: #fff; border-radius: 50%; top: 2px; left: 2px; transition: left 0.3s; }
.mlsp-toggle input:checked::before { left: 22px; }

/* Read-only info */
.mlsp-readonly { background: #f8f9fa; padding: 16px; border-radius: 8px; }
.mlsp-info-row { display: flex; justify-content: space-between; padding: 6px 0; }
.mlsp-info-label { color: #666; }
.mlsp-info-value { font-weight: 600; }
.mlsp-badge-active { color: #28a745; }
.mlsp-badge-inactive { color: #999; }

/* Buttons */
.mlsp-btn { padding: 10px 24px; border: none; border-radius: 6px; cursor: pointer; font-size: 14px; font-weight: 500; transition: all 0.2s; }
.mlsp-btn-primary { background: #1a3a4a; color: #fff; }
.mlsp-btn-primary:hover { background: #2d5f73; }
.mlsp-btn-small { padding: 6px 14px; font-size: 13px; background: #1a3a4a; color: #fff; border-radius: 4px; }
.mlsp-btn-small:hover { background: #2d5f73; }
.mlsp-btn-outline { background: #fff; color: #1a3a4a; border: 1px solid #1a3a4a; }
.mlsp-btn-tiny { padding: 3px 8px; font-size: 11px; background: #eee; color: #333; border: 1px solid #ccc; border-radius: 3px; cursor: pointer; }

/* Service Areas */
.mlsp-location-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 16px 0; }
.mlsp-search-input { padding: 6px 12px; border: 1px solid #ccc; border-radius: 4px; font-size: 13px; }
.mlsp-selected-count { color: #666; font-size: 13px; }
.mlsp-map-container { background: #f0f6f8; border-radius: 8px; padding: 20px; margin-bottom: 16px; min-height: 200px; text-align: center; }
.mlsp-map-placeholder { color: #999; font-style: italic; }
.mlsp-districts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 768px) { .mlsp-districts { grid-template-columns: 1fr; } }
.mlsp-district-group { border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; }
.mlsp-district-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: #f0f6f8; }
.mlsp-district-header h4 { margin: 0; font-size: 14px; color: #1a3a4a; }
.mlsp-district-count { color: #999; font-weight: normal; }
.mlsp-postcode-list { padding: 8px 14px; max-height: 200px; overflow-y: auto; }
.mlsp-postcode-item { display: flex; align-items: center; justify-content: space-between; padding: 3px 0; }
.mlsp-surcharge-input { width: 60px; padding: 3px 6px; border: 1px solid #ddd; border-radius: 3px; font-size: 12px; text-align: right; }

/* Radio group */
.mlsp-radio-group { display: flex; gap: 20px; }

/* Statements */
.mlsp-statement-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.mlsp-statement-filters select, .mlsp-statement-filters input[type="date"] { padding: 6px 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 13px; }
.mlsp-statements-list { width: 100%; border-collapse: collapse; }
.mlsp-statements-list th, .mlsp-statements-list td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #e0e0e0; font-size: 13px; }
.mlsp-statements-list th { background: #1a3a4a; color: #fff; font-weight: 500; }
.mlsp-statements-list tr:hover { background: #f8f9fa; }
.mlsp-status-badge { padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 500; }
.mlsp-status-draft { background: #e9ecef; color: #666; }
.mlsp-status-sent { background: #d4edfc; color: #0066cc; }
.mlsp-status-paid { background: #d4edda; color: #28a745; }
.mlsp-status-disputed { background: #f8d7da; color: #dc3545; }
.mlsp-balance-positive { color: #dc3545; }
.mlsp-balance-negative { color: #28a745; }

/* Save status */
.mlsp-save-status { margin-left: 12px; font-size: 13px; }
.mlsp-save-status.success { color: #28a745; }
.mlsp-save-status.error { color: #dc3545; }

/* Notice */
.mlsp-notice { padding: 16px; border-radius: 8px; margin-bottom: 16px; }
.mlsp-notice-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.mlsp-loading { color: #999; text-align: center; padding: 40px 0; }
