/* ═══════════════════════════════════════
   Psych Booking – Public Styles
   ═══════════════════════════════════════ */

/* ── Floating Button ── */
.pb-btn-floating {
    position: fixed;
    bottom: 28px;
    z-index: 9990;
    padding: 14px 22px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(37,99,235,.35);
    transition: transform .2s, box-shadow .2s;
    font-family: inherit;
    direction: rtl;
}
.pb-btn-floating:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(37,99,235,.45); }
.pb-btn-left  { left: 28px; }
.pb-btn-right { right: 28px; }

/* Inline button */
.pb-btn-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    font-family: inherit;
}
.pb-btn-inline:hover { background: #1d4ed8; }

/* ── Modal Overlay ── */
.pb-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(2px);
}
.pb-modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
    animation: pb-slide-up .25s ease;
}
@keyframes pb-slide-up { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.pb-modal-close {
    position: absolute;
    top: 14px; left: 14px;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    width: 32px; height: 32px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    color: #374151;
    transition: background .15s;
    z-index: 2;
}
.pb-modal-close:hover { background: #e5e7eb; }
.pb-modal-body { padding: 32px 28px 28px; }

/* ── Form ── */
.pb-form-wrap { direction: rtl; text-align: right; }
.pb-form-title { font-size: 20px; font-weight: 700; margin: 0 0 6px; color: #111827; }
.pb-form-desc  { color: #6b7280; font-size: 14px; margin: 0 0 20px; }

.pb-field { margin-bottom: 16px; }
.pb-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}
.pb-req      { color: #ef4444; }
.pb-optional { color: #9ca3af; font-weight: 400; font-size: 12px; }
.pb-hint     { color: #9ca3af; font-size: 12px; display: block; margin-top: 4px; }

.pb-field input,
.pb-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #111827;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
    font-family: inherit;
    direction: rtl;
}
.pb-field input:focus,
.pb-field textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.pb-field textarea { resize: vertical; min-height: 80px; }

.pb-submit-btn {
    width: 100%;
    padding: 13px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
    margin-top: 6px;
    font-family: inherit;
}
.pb-submit-btn:hover    { background: #1d4ed8; }
.pb-submit-btn:disabled { background: #93c5fd; cursor: not-allowed; }

.pb-privacy-note { text-align: center; color: #9ca3af; margin: 10px 0 0; }

/* Messages */
.pb-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
}
.pb-message.success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.pb-message.error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* Success state */
.pb-success-wrap { text-align: center; padding: 20px 0; }
.pb-success-icon { font-size: 56px; margin-bottom: 12px; }
.pb-success-wrap h3 { font-size: 20px; color: #065f46; }
.pb-success-wrap p  { color: #6b7280; }

/* ── Dashboard ── */
.pb-dashboard { direction: rtl; }
.pb-dash-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.pb-dash-header h2 { margin: 0; font-size: 22px; }

.pb-dash-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.pb-filter-tab {
    padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 500;
    background: #f3f4f6; color: #374151; text-decoration: none; transition: all .15s;
}
.pb-filter-tab.active,
.pb-filter-tab:hover { background: #2563eb; color: #fff; }

.pb-empty-state { text-align: center; padding: 48px; color: #9ca3af; font-size: 16px; }

.pb-dash-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 16px; }

.pb-dash-card {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    transition: box-shadow .2s;
}
.pb-dash-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.pb-card-pending  { border-top: 3px solid #f59e0b; }
.pb-card-approved { border-top: 3px solid #10b981; }
.pb-card-rejected { border-top: 3px solid #ef4444; }

.pb-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.pb-card-id  { color: #9ca3af; font-size: 12px; }
.pb-dash-card h4 { margin: 0 0 8px; font-size: 16px; }
.pb-dash-card p  { margin: 4px 0; font-size: 13px; color: #374151; }
.pb-dash-card a  { color: #2563eb; text-decoration: none; }
.pb-card-notes   { background: #f9fafb; border-radius: 6px; padding: 8px; font-size: 12px; color: #6b7280 !important; }
.pb-card-meta    { margin-top: 10px; color: #9ca3af; font-size: 12px; }
.pb-card-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

.pb-btn-approve, .pb-btn-reject, .pb-delete-btn {
    padding: 7px 14px; border-radius: 6px; border: none;
    font-size: 13px; font-weight: 600; cursor: pointer; transition: opacity .15s;
    font-family: inherit;
}
.pb-btn-approve { background: #d1fae5; color: #065f46; }
.pb-btn-reject  { background: #fee2e2; color: #991b1b; }
.pb-delete-btn  { background: #f3f4f6; color: #6b7280; }
.pb-btn-approve:hover { background: #a7f3d0; }
.pb-btn-reject:hover  { background: #fecaca; }
.pb-delete-btn:hover  { background: #e5e7eb; }

/* Status badges */
.pb-status { padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.pb-status-pending  { background: #fef3c7; color: #92400e; }
.pb-status-approved { background: #d1fae5; color: #065f46; }
.pb-status-rejected { background: #fee2e2; color: #991b1b; }

/* Disabled/access */
.pb-disabled, .pb-no-access, .pb-login-required { padding: 16px; background: #f9fafb; border-radius: 8px; color: #6b7280; }

@media (max-width: 600px) {
    .pb-modal-body { padding: 24px 16px 20px; }
    .pb-dash-grid  { grid-template-columns: 1fr; }
    .pb-btn-floating { bottom: 16px; }
    .pb-btn-left  { left: 16px; }
    .pb-btn-right { right: 16px; }
}

/* ── Tracking code display ── */
.pb-tracking-label {
    font-size: 16px;
    margin: 12px 0;
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    border-radius: 8px;
    padding: 10px 16px;
    display: inline-block;
}
.pb-tracking-num {
    font-size: 22px;
    color: #065f46;
    letter-spacing: 2px;
    margin-right: 8px;
    font-family: monospace;
}
.pb-wa-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 12px 28px;
    background: #25d366;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: background .2s;
}
.pb-wa-btn:hover { background: #128c7e; color: #fff; }
.pb-success-note { color: #9ca3af; font-size: 12px; margin-top: 8px; }
