*{box-sizing:border-box}:root{--primary: #1976D2;--primary-light: #42A5F5;--green: #4CAF50;--green-light: #E8F5E9;--red: #E53935;--red-light: #FFEBEE;--text: #212121;--text-secondary: #757575;--surface: #FFFFFF;--bg: #F5F5F5}html,body,#root{margin:0;padding:0;min-height:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,sans-serif;background:var(--bg);color:var(--text);-webkit-tap-highlight-color:transparent;direction:rtl;text-align:right}button{font-family:inherit;cursor:pointer;border:none}input,select{font-family:inherit}.app{max-width:480px;margin:0 auto;min-height:100vh;background:var(--surface);box-shadow:0 0 24px #00000014}@media (min-width: 481px){.app{border-radius:12px;margin:16px auto;min-height:calc(100vh - 32px)}}.card{background:var(--surface);border-radius:16px;padding:16px 20px;box-shadow:0 2px 8px #0000000f;margin-bottom:16px}.btn-primary{background:var(--primary);color:#fff;padding:14px 20px;border-radius:12px;font-weight:600;font-size:1rem;width:100%;display:flex;align-items:center;justify-content:center;gap:8px}.btn-primary:active{opacity:.9}.btn-outline{background:transparent;color:var(--primary);border:2px solid var(--primary);padding:12px 20px;border-radius:12px;font-weight:600;font-size:1rem;width:100%}.btn-link{background:transparent;border:none;color:var(--primary);font-size:.875rem;font-weight:600;padding:2px 0;width:auto;text-decoration:underline}.input{width:100%;padding:14px 16px;border:2px solid #E0E0E0;border-radius:12px;font-size:1rem}.input:focus{outline:none;border-color:var(--primary)}.estimated-order-input{background:var(--green-light);border-color:var(--green);color:#1b5e20;font-weight:800;text-align:center}.date-parts{display:grid;grid-template-columns:.8fr 1.4fr 1fr;gap:8px;padding:10px;border:2px solid #E0E0E0;border-radius:12px}.date-parts label{display:grid;gap:5px;color:var(--text-secondary);font-size:.75rem}.date-parts select{width:100%;padding:10px 6px;border:1px solid #E0E0E0;border-radius:8px;background:var(--surface);color:var(--text);font-size:.9rem}.name-warning{margin-top:8px;padding:12px 14px;border:2px solid #F59E0B;border-radius:12px;background:#fff7d6;color:#92400e;font-size:.9rem;font-weight:700;line-height:1.6}.label{display:block;font-size:.875rem;color:var(--text-secondary);margin-bottom:6px}.heading{font-size:1.25rem;font-weight:700;color:var(--text);margin:0 0 8px}.sub{font-size:.875rem;color:var(--text-secondary);margin:0}.phone-dialog-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;padding:16px}.phone-dialog{width:100%;max-width:360px}.loading-spinner{width:40px;height:40px;margin:0 auto;border:3px solid var(--bg);border-top-color:var(--primary);border-radius:50%;animation:spin .8s linear infinite}.search-header,.profile-actions,.profile-stats{display:flex;gap:10px;align-items:center}.search-header{justify-content:space-between;margin-bottom:8px}.filter-button{padding:9px 14px;border-radius:10px;background:#1976d21a;color:var(--primary);font-weight:700}.filters{display:grid;gap:8px}.filters .label:not(:first-child){margin-top:8px}.clinic-card,.doctor-profile-button{width:100%;text-align:right;color:inherit}.clinic-card{border:1px solid #eeeeee}.profile-page{min-height:100%;background:var(--bg)}.profile-hero{width:100%;height:210px;object-fit:cover;display:block}.profile-card{margin-top:0}.profile-accent{color:var(--primary);font-size:.875rem;font-weight:700;margin:5px 0}.profile-stats{flex-wrap:wrap;margin-top:14px;font-size:.8rem;color:var(--text-secondary)}.profile-stats span{padding:8px 10px;border-radius:10px;background:var(--bg)}.profile-text{white-space:pre-line;line-height:1.8;margin:0;color:var(--text-secondary)}.clinic-details p{margin:8px 0;color:var(--text-secondary);line-height:1.6}.profile-actions{flex-wrap:wrap}.profile-link{width:auto;flex:1;min-width:90px;text-align:center;text-decoration:none}.doctor-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:14px;margin-bottom:10px;border-radius:14px;background:var(--surface);box-shadow:0 2px 8px #0000000f}.doctor-profile-button{display:flex;justify-content:space-between;align-items:center;gap:10px;min-width:0;flex:1;padding:0;background:transparent}.doctor-profile-button span:first-child{display:grid;gap:4px}.doctor-profile-button small,.doctor-queue{color:var(--text-secondary);font-size:.75rem}.doctor-book-button{width:auto;flex:0 0 auto;padding:10px 18px}.reservation-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:4px;border-radius:16px;background:#f1f5f9}.reservation-tabs button{display:grid;gap:2px;justify-items:center;min-width:0;padding:10px 3px;border-radius:12px;background:transparent;color:var(--text-secondary);font-size:.7rem}.reservation-tabs button.selected{background:#fff;color:var(--primary);box-shadow:0 1px 4px #0f172a14}.reservation-tabs button span{overflow:hidden;max-width:100%;white-space:nowrap;text-overflow:ellipsis}.reservation-tabs button strong{font-size:.75rem}.active-reservation-selector,.reservation-list{display:grid;gap:12px;margin-top:12px}.active-reservation-selector button{padding:12px;border:1px solid #CBD5E1;border-radius:12px;background:#fff;color:var(--text)}.active-reservation-selector button.selected{border-color:var(--primary);background:#1976d214;color:var(--primary);font-weight:700}.reservation-card{padding:18px;border:1px solid rgba(25,118,210,.2);border-radius:20px;background:#fff;box-shadow:0 2px 8px #0000000f}.reservation-card-header,.reservation-card-details{display:flex;align-items:center;justify-content:space-between;gap:12px}.reservation-card-header .heading{margin-bottom:3px;font-size:1rem}.reservation-status{flex:0 0 auto;padding:6px 10px;border-radius:10px;background:#eff6ff;color:var(--primary);font-size:.7rem;font-weight:700}.reservation-status.canceled{background:var(--red-light);color:var(--red)}.reservation-card-details{margin-top:16px;color:var(--text-secondary);font-size:.8rem}.reservation-card-details strong{flex:0 0 auto;color:var(--primary)}.reservation-empty{text-align:center;color:var(--text-secondary)}.queue-alert{border-right:4px solid}.queue-alert.success{border-color:var(--green);background:var(--green-light);color:#2e7d32}.queue-alert.danger{border-color:var(--red);background:var(--red-light);color:var(--red)}.queue-stat strong{display:block;margin:8px 0;font-size:2rem}.queue-stat.primary{background:var(--primary);color:#fff}.queue-stat.primary p{margin:0;color:#ffffffe6}.queue-stat.primary strong{font-size:3rem}.queue-stat .wait-time{font-size:1.5rem}@keyframes spin{to{transform:rotate(360deg)}}
