/*
Theme Name: Ade Mesmo!
Theme URI: https://agenciaade.com.br
Author: Armando Tomazzoni Jr
Author URI: https://ade.ag
Description: Tema padrão da Agência Ade! para uso como API
Version: 3.0
Tags: api, rest, react
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body,
button,
input,
select {
  font-family: 'Inter', Arial, sans-serif;
}

body {
  margin: 0;
  background: #f7f8ff;
  color: #333;
}

.medicoapp-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.medicoapp-header {
  padding: 24px 28px;
  background: #2d40b2;
  color: #fff;
}

.medicoapp-branding {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(720px, 100%);
  margin: 0 auto;
}

.medicoapp-user-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.medicoapp-user-greeting {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.medicoapp-user-greeting strong {
  color: #fff;
  font-weight: 600;
}

.medicoapp-login-button {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}

.medicoapp-login-button:hover {
  background: rgba(255, 255, 255, 0.25);
}

.medicoapp-logout-link {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.medicoapp-logout-link:hover {
  color: #fff;
}

/* ── Login Page ──────────────────────────────────────────── */

.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
  min-height: 60vh;
}

.login-page-card {
  background: #fff;
  border-radius: 24px;
  padding: 40px 36px 36px;
  width: min(460px, 100%);
  box-shadow: 0 22px 60px rgba(45, 64, 178, 0.12);
}

.login-page-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 28px;
  background: #f0f3ff;
  border-radius: 14px;
  padding: 4px;
}

.login-page-tab {
  flex: 1;
  background: none;
  border: none;
  border-radius: 12px;
  padding: 11px 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #707070;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease;
}

.login-page-tab.active {
  background: #fff;
  color: #2d40b2;
  box-shadow: 0 2px 8px rgba(45, 64, 178, 0.1);
}

.login-page-header {
  margin-bottom: 24px;
}

.login-page-header h1 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #2d40b2;
  margin: 0 0 6px;
}

.login-page-header p {
  font-size: 0.9rem;
  color: #707070;
  margin: 0;
}

.login-page-fields label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #444;
  margin: 16px 0 6px;
}

.login-page-fields label:first-child {
  margin-top: 0;
}

.login-page-fields input {
  width: 100%;
  border: 1px solid #dfe4f5;
  border-radius: 14px;
  padding: 13px 16px;
  font-size: 0.95rem;
  color: #222;
  outline: none;
  box-sizing: border-box;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.login-page-fields input:focus {
  border-color: #2d40b2;
  box-shadow: 0 0 0 3px rgba(45, 64, 178, 0.1);
}

.login-page-btn {
  display: block;
  width: 100%;
  margin-top: 22px;
  padding: 14px;
  background: #2d40b2;
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease;
}

.login-page-btn:hover {
  background: #1e2d8a;
}

.login-page-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.login-page-message {
  margin-top: 12px;
  font-size: 0.875rem;
  color: #c0392b;
  min-height: 1.2em;
}

/* ── End Login Page ──────────────────────────────────────── */

.medicoapp-logo-text {
  font-size: 1.5rem;
  font-weight: 700;
}

.medicoapp-logo {
  height: 40px;
  width: auto;
  display: block;
}

.medicoapp-main {
  flex: 1;
  width: min(720px, 100%);
  max-width: fit-content;
  margin: 0 auto;
  padding: 32px 24px;
}

.booking-page {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 22px 60px rgba(45, 64, 178, 0.12);
}

.booking-intro {
  padding: 32px 36px;
  border-bottom: 1px solid rgba(45, 64, 178, 0.08);
}

.booking-intro h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 2.5vw, 2.6rem);
  color: #2d40b2;
}

.booking-intro p {
  margin: 0;
  color: #707070;
  max-width: 680px;
}

.booking-menu {
  padding: 24px 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.booking-action-button,
.button {
  border: 0;
  border-radius: 14px;
  flex; 1;
  padding: 16px 22px;
  font-size: 1rem;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.booking-action-button {
  background: #00aaff;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.booking-action-button.is-selected {
  background: #00aaff;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 170, 255, 0.28);
}

.booking-action-button.is-dimmed {
  background: #d3d7e3;
  color: #697089;
}

.booking-action-button:hover,
.button:hover {
  transform: translateY(-1px);
}

.booking-action-button:focus,
.button:focus {
  outline: 3px solid rgba(0, 170, 255, 0.4);
}

.booking-steps {
  padding: 0 36px 36px;
}

.booking-step {
  display: none;
  padding-top: 24px;
}

.booking-step.is-active {
  display: block;
}

.booking-summary {
  margin-bottom: 28px;
}

.booking-summary-title {
  margin: 0;
  font-size: 1.75rem;
  color: #2d40b2;
}

.booking-summary-copy {
  margin: 12px 0 0;
  color: #707070;
}

.field-group {
  margin-bottom: 18px;
}

.field-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: #2d40b2;
}

..field-group input,
.field-group select,
.auth-block input {
  width: 100%;
  border: 1px solid #dfe4f5;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 1rem;
  background: #fff;
  color: #222;
}

.auth-block label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: #2d40b2;
}

.auth-block input {
  box-sizing: border-box;
  margin-bottom: 14px;
}

.field-group--inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.search-select {
  position: relative;
}

.search-select input {
  width: stretch;
  border: 1px solid #dfe4f5;
  border-radius: 14px;
  padding: 14px 16px;
  background: #fff;
  color: #222;
  font-size: 15px;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.search-select input:focus {
  outline: none;
  border-color: #00aaff;
  box-shadow: 0 0 0 3px rgba(0, 170, 255, 0.18);
}

.search-results {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  margin-top: 6px;
  border: 1px solid #dfe4f5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(45, 64, 178, 0.08);
  max-height: 240px;
  overflow: auto;
  display: none;
}

.search-results.is-open {
  display: block;
}

.search-item,
.search-empty {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #222;
  font-size: 0.98rem;
}

.search-item:hover,
.search-item:focus {
  background: #f4f8ff;
}

.search-item--card {
  gap: 14px;
  padding: 12px 16px;
}

.search-item--card {
  display: flex;
  align-items: center;
}

.search-item-image {
  width: 96px;
  height: 54px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f0f4ff;
  border: 1px solid #dfe4f5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  box-sizing: border-box;
}

.search-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.search-empty {
  color: #707070;
  cursor: default;
}

.selected-image {
  margin-top: 10px;
  width: 160px;
  height: 90px;
  border-radius: 12px;
  overflow: hidden;
  background: #f0f4ff;
  border: 1px solid #dfe4f5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.selected-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.selected-address {
  margin-left: 16px;
  margin-top: 10px;
  font-size: 0.875rem;
  color: #707070;
  flex: 1;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 280px;
}

.selected-address strong {
  color: #2d40b2;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.selected-address p {
  margin: 4px 0 0;
}

.selected-address-wrapper {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.booking-resume {
  background: #f7f9ff;
  border: 1px solid #dfe4f5;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 20px;
}

.booking-resume h3 {
  margin-top: 0;
  color: #2d40b2;
}

.booking-resume-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.booking-resume-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #eef2ff;
}

.booking-resume-list li:last-child {
  border-bottom: none;
}

.resume-selected-image {
  margin: 0 0 16px 0;
  text-align: center;
}

.resume-selected-image img {
  width: 120px;
  height: 68px;
  object-fit: contain;
  border-radius: 12px;
  background: #f0f4ff;
  border: 1px solid #dfe4f5;
  padding: 8px;
  box-sizing: border-box;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(45, 64, 178, 0.08);
}

.resume-selected-address {
  text-align: center;
  margin: 0 0 16px 0;
  font-size: 0.875rem;
  color: #707070;
  line-height: 1.4;
}

.booking-resume-list span {
  color: #707070;
}

.booking-resume-list strong {
  color: #2d40b2;
}

.booking-actions {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button-primary {
  background: #2d40b2;
  color: #fff;
}

.button-secondary {
  background: #00ffeb;
  color: #2d40b2;
}

/* Flatpickr custom styles */
.flatpickr-calendar {
  background: #fff;
  border: 1px solid #dfe4f5;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(45, 64, 178, 0.08);
  font-family: 'Inter', sans-serif;
}

.flatpickr-months .flatpickr-month {
  background: #f4f8ff;
  color: #2d40b2;
  border-radius: 12px 12px 0 0;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
  color: #2d40b2;
}

.flatpickr-current-month .numInputWrapper {
  display: none !important;
}

.flatpickr-day {
  color: #222;
  border-radius: 8px;
}

.flatpickr-day:hover,
.flatpickr-day:focus {
  background: #00ffeb;
  color: #2d40b2;
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover {
  background: #2d40b2;
  color: #fff;
}

.flatpickr-day.today {
  border-color: #00aaff;
}

.flatpickr-day.disabled {
  color: #ccc;
}

/* Date / Time input styling — matches search-select visual */
input.flatpickr-input,
input[type='date'],
input[type='time'],
input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #dfe4f5;
  border-radius: 14px;
  padding: 14px 16px;
  background: #fff;
  color: #222;
  font-size: 15px;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

input.flatpickr-input:focus,
input[type='date']:focus,
input[type='time']:focus,
input:focus {
  outline: none;
  border-color: #00aaff;
  box-shadow: 0 0 0 3px rgba(0, 170, 255, 0.18);
}

.button:disabled,
.booking-action-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.auth-block {
  background: #f4f8ff;
  border: 1px solid rgba(45, 64, 178, 0.12);
  border-radius: 20px;
  padding: 22px;
  margin-bottom: 18px;
}

.auth-block h3 {
  margin-top: 0;
  color: #2d40b2;
}

.auth-block--register-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.auth-block--register-link p {
  margin: 0;
  color: #555;
  font-size: 0.95rem;
}

.auth-register-link-btn {
  display: inline-block;
  padding: 10px 22px;
  background: transparent;
  color: #2d40b2;
  border: 2px solid #2d40b2;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.18s ease,
    color 0.18s ease;
}

.auth-register-link-btn:hover {
  background: #2d40b2;
  color: #fff;
}

.auth-message {
  margin-top: 12px;
  color: #d32f2f;
}

.booking-complete {
  margin-top: 24px;
  padding: 24px;
  border-radius: 20px;
  background: #e8fff8;
  color: #0b4d3e;
}

.medicoapp-footer {
  padding: 24px 28px;
  background: #0f124f;
  color: #fff;
  text-align: center;
  font-size: 14px;
}
.medicoapp-footer p {
  opacity: 0.7;
  transition: all 0.2s ease;
}
.medicoapp-footer p:hover {
  opacity: 1;
}

@media (max-width: 760px) {
  .field-group--inline {
    grid-template-columns: 1fr;
  }
  .booking-menu {
    flex-direction: column;
  }
  .selected-address-wrapper {
    flex-direction: column;
  }
  .booking-resume-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .booking-resume-list li span,
  .booking-resume-list li strong {
    width: 100%;
  }
}
