/* ===== PSICO AGENDA PUBLIC CSS v2 ===== */
:root {
    --teal:#4BBFBF; --teal-dark:#3aadad;
    --green:#27ae60; --orange:#e67e22; --grey:#95a5a6;
    --red:#e74c3c; --text:#2d3748; --text-light:#718096;
    --border:#e2e8f0; --bg:#f7fafc; --radius:10px;
    --shadow:0 4px 20px rgba(0,0,0,.08);
}
* { box-sizing:border-box; }

#psico-booking-app {
    font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
    color:var(--text); max-width:860px; margin:0 auto; padding:0 0 40px;
}

/* HEADER BAR */
.psico-header-bar {
    display:flex; align-items:center; justify-content:space-between;
    background:linear-gradient(135deg,#2c3e50,var(--teal));
    color:#fff; padding:14px 22px; border-radius:var(--radius) var(--radius) 0 0;
    flex-wrap:wrap; gap:10px;
}
.psico-logo { font-size:16px; font-weight:700; }
.psico-user-bar { display:flex; align-items:center; gap:14px; font-size:13px; }
.psico-user-name { opacity:.9; }
.psico-link-btn { background:rgba(255,255,255,.2); border:1px solid rgba(255,255,255,.4); color:#fff; padding:5px 12px; border-radius:20px; cursor:pointer; font-size:12px; transition:all .15s; }
.psico-link-btn:hover { background:rgba(255,255,255,.35); }

/* PROGRESS BAR */
.psico-progress-bar {
    display:flex; align-items:center; justify-content:center;
    background:#fff; padding:16px 20px; border-bottom:1.5px solid var(--border);
    flex-wrap:wrap; gap:0;
}
.psico-step { display:flex; flex-direction:column; align-items:center; gap:5px; }
.psico-step-circle {
    width:32px; height:32px; border-radius:50%; border:2.5px solid var(--border);
    display:flex; align-items:center; justify-content:center;
    font-size:13px; font-weight:700; color:var(--text-light); background:#fff; transition:all .25s;
}
.psico-step-label { font-size:11px; color:var(--text-light); font-weight:500; white-space:nowrap; }
.psico-step.active .psico-step-circle  { border-color:var(--teal); background:var(--teal); color:#fff; }
.psico-step.active .psico-step-label   { color:var(--teal); font-weight:700; }
.psico-step.completed .psico-step-circle { border-color:var(--green); background:var(--green); color:#fff; }
.psico-step.completed .psico-step-circle::after { content:'✓'; }
.psico-step.completed .psico-step-circle span { display:none; }
.psico-step-line { flex:1; height:2px; background:var(--border); min-width:30px; max-width:80px; margin:0 8px; margin-bottom:16px; }

/* NOTICE */
.psico-pub-notice {
    padding:12px 18px; border-radius:8px; margin:12px 16px; font-size:14px; font-weight:500;
}
.notice-success { background:#e8f5e9; color:#1b5e20; border-left:4px solid var(--green); }
.notice-error   { background:#fdecea; color:#7f0000; border-left:4px solid var(--red); }

/* STEP CONTENT */
.psico-step-content { display:none; padding:28px 20px; background:#fff; }
.psico-step-content.active { display:block; }
.psico-step-title { font-size:20px; font-weight:700; margin:0 0 22px; color:var(--text); }
.psico-back-btn { background:none; border:none; color:var(--teal); cursor:pointer; font-size:13px; padding:0; margin-bottom:18px; display:inline-flex; align-items:center; gap:4px; }
.psico-back-btn:hover { text-decoration:underline; }

/* SERVICE CARDS */
.psico-services-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:16px; }
.psico-service-card {
    border:2.5px solid var(--border); border-radius:12px; padding:28px 20px;
    text-align:center; cursor:pointer; transition:all .2s;
}
.psico-service-card:hover { border-color:var(--teal); transform:translateY(-3px); box-shadow:var(--shadow); }
.psico-service-card.selected { border-color:var(--teal); background:#f0fffe; box-shadow:0 0 0 3px rgba(75,191,191,.2); }
.service-card-green:hover,.service-card-green.selected  { border-color:var(--green); }
.service-card-orange:hover,.service-card-orange.selected { border-color:var(--orange); }
.service-icon { font-size:36px; margin-bottom:10px; }
.service-name { font-size:15px; font-weight:700; margin-bottom:6px; }
.service-duration { font-size:12px; color:var(--text-light); }

/* CALENDAR */
.psico-datetime-wrap { display:grid; grid-template-columns:auto 1fr; gap:24px; align-items:start; }
.psico-calendar-wrap { min-width:260px; }
.psico-mini-cal-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.psico-mini-cal-header button { background:none; border:1.5px solid var(--border); border-radius:6px; width:30px; height:30px; cursor:pointer; font-size:16px; display:flex; align-items:center; justify-content:center; }
.psico-mini-cal-header button:hover { border-color:var(--teal); color:var(--teal); }
.psico-mini-cal-header span { font-weight:700; font-size:15px; }
.psico-mini-cal-days { display:grid; grid-template-columns:repeat(7,1fr); text-align:center; margin-bottom:4px; }
.psico-mini-cal-days span { font-size:11px; font-weight:600; color:var(--text-light); padding:4px 0; }
.psico-mini-cal-body { display:grid; grid-template-columns:repeat(7,1fr); gap:2px; }
.cal-day,.cal-empty { width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:500; }
.cal-empty { visibility:hidden; }
.cal-day.cal-available { cursor:pointer; color:var(--teal); font-weight:700; background:#f0fffe; }
.cal-day.cal-available:hover { background:var(--teal); color:#fff; }
.cal-day.cal-selected { background:var(--teal) !important; color:#fff !important; }
.cal-day.cal-today { box-shadow:0 0 0 2px var(--teal); }
.cal-day.cal-past,.cal-day.cal-too_far,.cal-day.cal-weekend { color:#ccc; cursor:default; }
.cal-day.cal-full { color:var(--text-light); cursor:default; }
.cal-day.cal-blocked { color:#e0e0e0; cursor:default; }
.psico-cal-legend-pub { display:flex; gap:12px; margin-top:10px; font-size:11px; color:var(--text-light); }
.cal-dot { display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:3px; vertical-align:middle; }
.cal-dot.available { background:var(--teal); }
.cal-dot.full      { background:var(--text-light); }

/* SLOTS */
.psico-slots-wrap {}
.psico-slots-title { font-size:15px; font-weight:700; margin-bottom:14px; color:var(--text-light); }
.psico-slots-list { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.psico-slot-btn {
    padding:10px 6px; border:1.5px solid var(--teal); border-radius:8px;
    text-align:center; font-size:13px; font-weight:600; color:var(--teal);
    cursor:pointer; transition:all .15s; background:#fff;
}
.psico-slot-btn:hover  { background:var(--teal); color:#fff; }
.psico-slot-btn.selected { background:var(--teal); color:#fff; }
.psico-loading { color:var(--text-light); font-size:13px; padding:20px 0; }
.no-slots { color:var(--text-light); font-size:14px; padding:20px 0; }

/* LOGIN BOX */
.psico-login-box { max-width:420px; margin:0 auto; background:var(--bg); padding:24px; border-radius:12px; border:1.5px solid var(--border); }
.psico-form-group-pub { margin-bottom:16px; }
.psico-form-group-pub label { display:block; font-size:12px; font-weight:600; color:var(--text-light); margin-bottom:6px; text-transform:uppercase; letter-spacing:.5px; }
.psico-form-group-pub input { width:100%; padding:10px 13px; border:1.5px solid var(--border); border-radius:8px; font-size:14px; color:var(--text); }
.psico-form-group-pub input:focus { outline:none; border-color:var(--teal); }
.psico-book-btn { width:100%; padding:13px; background:var(--teal); color:#fff; border:none; border-radius:8px; font-size:15px; font-weight:700; cursor:pointer; transition:all .15s; }
.psico-book-btn:hover { background:var(--teal-dark); }
.psico-book-btn:disabled { background:#ccc; cursor:not-allowed; }
.psico-link { color:var(--teal); text-decoration:none; font-size:13px; }
.psico-link:hover { text-decoration:underline; }

/* CONFIRM */
.psico-confirm-box { text-align:center; padding:20px; max-width:500px; margin:0 auto; }
.psico-confirm-icon { font-size:52px; margin-bottom:12px; }
.psico-confirm-box h2 { color:var(--green); margin-bottom:20px; }
.psico-confirm-details { background:var(--bg); border-radius:10px; padding:18px 24px; text-align:left; margin-bottom:20px; }
.confirm-row { display:flex; justify-content:space-between; align-items:center; padding:8px 0; border-bottom:1px solid var(--border); font-size:14px; }
.confirm-row:last-child { border-bottom:none; }
.confirm-row span { color:var(--text-light); }

/* MY APPOINTMENTS PANEL */
.psico-my-apts-panel {
    position:fixed; right:0; top:0; width:380px; max-width:100%; height:100vh;
    background:#fff; box-shadow:-4px 0 30px rgba(0,0,0,.15); z-index:9999;
    display:flex; flex-direction:column; overflow:hidden;
}
.psico-my-apts-header { display:flex; align-items:center; justify-content:space-between; padding:16px 20px; background:#2c3e50; color:#fff; flex-shrink:0; }
.psico-my-apts-header h3 { margin:0; font-size:15px; }
.psico-close-panel { background:transparent; border:none; color:#fff; font-size:20px; cursor:pointer; }
.psico-my-apts-list { overflow-y:auto; flex:1; padding:16px; }
.psico-apt-item { display:flex; align-items:flex-start; gap:12px; padding:12px; background:#f7fafc; border-radius:8px; margin-bottom:10px; border:1.5px solid var(--border); }
.psico-apt-dot { width:12px; height:12px; border-radius:50%; flex-shrink:0; margin-top:4px; }
.psico-apt-info { flex:1; font-size:13px; line-height:1.5; }
.psico-apt-info strong { display:block; font-size:14px; }
.psico-apt-type { display:block; color:var(--text-light); font-size:12px; }
.psico-apt-notes { display:block; color:var(--text-light); font-size:11px; margin-top:2px; font-style:italic; }
.psico-apt-actions { display:flex; flex-direction:column; gap:4px; align-items:flex-end; }
.psico-cancel-btn { background:var(--red); color:#fff; border:none; border-radius:5px; padding:5px 9px; font-size:11px; cursor:pointer; white-space:nowrap; }
.psico-cancel-btn:hover { background:#c0392b; }
.psico-no-cancel { font-size:10px; color:var(--text-light); cursor:help; }
.no-apts { color:var(--text-light); text-align:center; padding:20px; }

@media (max-width:640px) {
    .psico-datetime-wrap { grid-template-columns:1fr; }
    .psico-slots-list { grid-template-columns:repeat(2,1fr); }
    .psico-my-apts-panel { width:100%; }
    .psico-progress-bar { gap:4px; }
    .psico-step-line { min-width:16px; }
}
