/* AllShades26 Patient Portal - site.css - SNet Dark Theme */
:root {
    --bg-primary:    #1a1a2e;
    --bg-secondary:  #16213e;
    --bg-card:       #1f2937;
    --bg-input:      #374151;
    --text-primary:  #f3f4f6;
    --text-secondary:#9ca3af;
    --text-muted:    #6b7280;
    --border-color:  #374151;
    --accent-primary:#3b82f6;
    --accent-success:#10b981;
    --accent-warning:#f59e0b;
    --accent-danger: #ef4444;
    --accent-info:   #06b6d4;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif; background: var(--bg-primary); color: var(--text-primary); line-height: 1.6; min-height: 100vh; }
.site-header { background: var(--bg-secondary); padding: 1rem 1.5rem; border-bottom: 1px solid var(--border-color); text-align: center; }
.site-header .brand { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); text-decoration: none; }
.site-header .brand i { margin-right: 0.5rem; color: var(--accent-primary); }
.site-header .subtitle { font-size: 0.85rem; color: var(--text-secondary); margin-top: 0.25rem; }
.container { max-width: 640px; margin: 0 auto; padding: 1.5rem; }
.card { background: var(--bg-card); border-radius: 12px; border: 1px solid var(--border-color); overflow: hidden; margin-bottom: 1rem; }
.card-header { background: var(--bg-secondary); padding: 1rem; font-weight: 600; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.card-header i { margin-right: 0.5rem; color: var(--accent-primary); }
.card-body { padding: 1.25rem; }
.steps { display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 1.5rem; padding: 0 1rem; }
.step { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--text-muted); padding: 0.4rem 0.75rem; border-radius: 20px; background: transparent; transition: all 0.3s; }
.step.active { color: var(--text-primary); background: rgba(59,130,246,0.15); }
.step.completed { color: var(--accent-success); }
.step .step-num { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; border: 2px solid var(--text-muted); transition: all 0.3s; }
.step.active .step-num { border-color: var(--accent-primary); background: var(--accent-primary); color: #fff; }
.step.completed .step-num { border-color: var(--accent-success); background: var(--accent-success); color: #fff; }
.calendar-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.calendar-nav .month-label { font-size: 1.1rem; font-weight: 600; }
.calendar-nav button { background: var(--bg-input); border: none; color: var(--text-primary); width: 36px; height: 36px; border-radius: 8px; cursor: pointer; font-size: 1rem; transition: background 0.2s; }
.calendar-nav button:hover { background: var(--accent-primary); }
.calendar-nav button:disabled { opacity: 0.3; cursor: not-allowed; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 1rem; }
.calendar-grid .day-header { text-align: center; font-size: 0.7rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; padding: 0.4rem 0; }
.calendar-grid .day-cell { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 8px; cursor: pointer; font-size: 0.9rem; transition: all 0.2s; position: relative; border: 2px solid transparent; }
.calendar-grid .day-cell:hover:not(.disabled):not(.empty) { background: rgba(59,130,246,0.1); }
.calendar-grid .day-cell.available { color: var(--text-primary); }
.calendar-grid .day-cell.available::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-success); position: absolute; bottom: 4px; }
.calendar-grid .day-cell.disabled { color: var(--text-muted); opacity: 0.4; cursor: not-allowed; }
.calendar-grid .day-cell.empty { cursor: default; }
.calendar-grid .day-cell.selected { background: var(--accent-primary); color: #fff; border-color: var(--accent-primary); }
.calendar-grid .day-cell.selected::after { background: #fff; }
.calendar-grid .day-cell.today { border-color: var(--accent-info); }
.slots-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.slot-btn { padding: 0.75rem 0.5rem; background: var(--bg-input); border: 2px solid var(--border-color); border-radius: 10px; color: var(--text-primary); font-size: 0.95rem; font-weight: 500; cursor: pointer; text-align: center; transition: all 0.2s; }
.slot-btn:hover { border-color: var(--accent-primary); background: rgba(59,130,246,0.1); }
.slot-btn.selected { background: var(--accent-primary); border-color: var(--accent-primary); color: #fff; }
.no-slots { text-align: center; color: var(--text-muted); padding: 2rem; font-size: 0.9rem; }
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.35rem; }
.form-label .required { color: var(--accent-danger); margin-left: 2px; }
.form-control { width: 100%; background: var(--bg-input); border: 1px solid var(--border-color); color: var(--text-primary); padding: 0.625rem 0.75rem; border-radius: 8px; font-size: 1rem; font-family: inherit; transition: border-color 0.2s; }
.form-control:focus { outline: none; border-color: var(--accent-primary); box-shadow: 0 0 0 3px rgba(59,130,246,.15); }
.form-control.invalid { border-color: var(--accent-danger); box-shadow: 0 0 0 3px rgba(239,68,68,.15); }
select.form-control option { background: var(--bg-card); }
textarea.form-control { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }
.form-error { font-size: 0.75rem; color: var(--accent-danger); margin-top: 0.25rem; display: none; }
.checkbox-group { display: flex; flex-direction: column; gap: 0.5rem; }
.checkbox-label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-size: 0.9rem; color: var(--text-primary); }
.checkbox-label input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent-primary); cursor: pointer; }
.reminder-section { background: rgba(6,182,212,0.05); border: 1px solid rgba(6,182,212,0.2); border-radius: 10px; padding: 1rem; margin-top: 0.5rem; }
.reminder-section .section-title { font-size: 0.85rem; font-weight: 600; color: var(--accent-info); margin-bottom: 0.5rem; }
.reminder-section .section-title i { margin-right: 0.4rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.5rem; border-radius: 10px; font-weight: 600; font-size: 1rem; border: none; cursor: pointer; text-decoration: none; transition: all 0.2s; font-family: inherit; }
.btn-primary { background: var(--accent-primary); color: #fff; }
.btn-primary:hover { background: #2563eb; }
.btn-success { background: var(--accent-success); color: #fff; }
.btn-success:hover { background: #059669; }
.btn-danger { background: var(--accent-danger); color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-secondary { background: var(--bg-input); color: var(--text-primary); }
.btn-secondary:hover { background: var(--border-color); }
.btn-block { display: flex; width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-group { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.btn-group .btn { flex: 1; }
.summary-card { background: var(--bg-secondary); border-radius: 10px; padding: 1.25rem; margin-bottom: 1rem; }
.summary-row { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 0.9rem; }
.summary-row:last-child { border-bottom: none; }
.summary-row .label { color: var(--text-muted); }
.summary-row .value { color: var(--text-primary); font-weight: 500; text-align: right; }
.confirmation-code { text-align: center; padding: 1.5rem; background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3); border-radius: 12px; margin: 1rem 0; }
.confirmation-code .code-label { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.confirmation-code .code { font-size: 2rem; font-weight: 700; letter-spacing: 0.15em; color: var(--accent-success); }
.badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 10px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.03em; }
.badge-success { background: rgba(16,185,129,0.2); color: #34d399; }
.badge-info { background: rgba(6,182,212,0.2); color: #22d3ee; }
.badge-warning { background: rgba(245,158,11,0.2); color: #fbbf24; }
.alert { padding: 1rem; border-radius: 10px; margin-bottom: 1rem; font-size: 0.9rem; }
.alert-success { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3); color: #34d399; }
.alert-danger { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #f87171; }
.alert-info { background: rgba(6,182,212,0.1); border: 1px solid rgba(6,182,212,0.3); color: #22d3ee; }
.spinner { display: inline-block; width: 20px; height: 20px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay { position: fixed; inset: 0; background: rgba(26,26,46,0.8); display: flex; align-items: center; justify-content: center; z-index: 1000; flex-direction: column; gap: 1rem; color: var(--text-primary); }
.loading-overlay .spinner { width: 40px; height: 40px; border-width: 3px; }
.site-footer { text-align: center; padding: 2rem 1rem; color: var(--text-muted); font-size: 0.8rem; }
.site-footer a { color: var(--accent-primary); text-decoration: none; }
.step-panel { display: none; }
.step-panel.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
