:root {
  --green: #166b50;
  --green-dark: #11553f;
  --green-light: #edf6f0;
  --ink: #243e34;
  --muted: #78877f;
  --line: #e6ece7;
  --background: #f6f8f5;
  --radius: 18px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
button,
input {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #d19732;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
abbr[title] {
  text-decoration: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -80px;
  background: white;
  padding: 12px;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
}
.skip-link:focus {
  top: 12px;
  opacity: 1;
  pointer-events: auto;
}
.site-header {
  height: 82px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1200px;
  height: 100%;
  padding: 0 32px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -0.8px;
  color: var(--green);
}
/* Aplica o negrito correto e a cor verde escura apenas no Unopar */
.brand .brand-bold {
  font-weight: 700 !important; /* Peso bem marcado para o negrito */
  color: #166b50 !important;   /* Cor verde oficial do seu tema */
}

.brand-light {
  font-weight: 400 !important;
}
.brand-name {
  font-weight: 750;
}
.brand-icon {
  .brand-bold {
  font-weight: 700 !important;
}
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--green-light);
  border-radius: 11px;
  margin-right: 10px;
}
.account {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 13px;
}
.account-name {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.text-button {
  border: 0;
  background: none;
  color: var(--green);
  font-weight: 600;
  padding: 6px;
}
.account form {
  border-left: 1px solid var(--line);
  padding-left: 16px;
}
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 32px 28px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}
.eyebrow {
  font-size: 15px;
  letter-spacing: 2px;
  font-weight: 750;
  color: var(--green);
  margin-bottom: 8px;
}
h1 {
  font-size: 36px;
  font-weight: 650;
  letter-spacing: -1.5px;
  line-height: 1.25;
}
.heading-dot {
  color: #77a58a;
}
.subtitle {
  color: var(--muted);
  margin-top: 10px;
  font-size: 14px;
}
.primary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--green);
  border-radius: 9px;
  padding: 12px 19px;
  color: white;
  background: var(--green);
  font-weight: 600;
  box-shadow: 0 3px 8px #166b5010;
}
.primary-button:hover:not(:disabled) {
  background: var(--green-dark);
}
.primary-button:disabled {
  opacity: 0.75;
}
.primary-button > span {
  font-size: 20px;
  line-height: 1;
}
.form-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
}
.coming-soon {
  font-size: 11px;
  color: var(--muted);
  padding-right: 3px;
}
.calendar-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 5px 20px #243e3404;
  overflow: hidden;
}
.calendar-toolbar {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 26px;
  gap: 18px;
}
.calendar-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}
.calendar-heading h2 {
  font-size: 16px;
  font-weight: 650;
}
.section-icon {
  color: var(--green);
  font-size: 23px;
  line-height: 1;
}
.month-navigation {
  display: flex;
  align-items: center;
  gap: 20px;
}
.month-navigation h3 {
  min-width: 174px;
  text-align: center;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.3px;
}
.month-navigation h3 span {
  color: var(--muted);
  font-weight: 400;
}
.icon-button {
  width: 33px;
  height: 33px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}
.icon-button:hover {
  background: var(--green-light);
  border-color: #cbded0;
}
.today-button {
  padding: 7px 16px;
  border: 1px solid #dbe5dc;
  border-radius: 7px;
  background: #fff;
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
}
.today-button:hover {
  background: var(--green-light);
}
.month-summary {
  padding: 13px 26px;
  background: #fafcf9;
  border-block: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
}
.month-summary strong {
  color: var(--ink);
  font-weight: 700;
}
.legend {
  display: flex;
  gap: 18px;
  font-size: 11px;
}
.legend > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend b {
  font-size: 10px;
  font-weight: 500;
  background: white;
  border: 1px solid var(--line);
  padding: 0 5px;
  border-radius: 4px;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.status-dot.confirmado {
  background: #46976b;
}
.status-dot.pendente {
  background: #c49c4a;
}
.status-dot.cancelado {
  background: #b29b9b;
}
.calendar-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.calendar-table th {
  height: 44px;
  text-align: left;
  padding-left: 17px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1px;
}
.calendar-table th:first-child,
.calendar-table th:last-child {
  color: #9ba69f;
}
.calendar-table td {
  height: 120px;
  padding: 0;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  vertical-align: top;
}
.calendar-table td:last-child {
  border-right: 0;
}
.calendar-table tr:last-child td {
  border-bottom: 0;
}
.empty-day {
  background: #fafbf9;
}
.day-button {
  width: 100%;
  height: 100%;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 12px 10px 10px;
  border: 0;
  background: transparent;
  text-align: left;
  color: var(--ink);
  transition: background 0.15s;
}
.day-button:hover {
  background: #f3f8f2;
}
.day-button:focus-visible {
  outline-offset: -4px;
  border-radius: 6px;
}
.today-cell {
  background: #f9fcf8;
}
.day-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 25px;
  padding: 0 4px;
  margin-bottom: 10px;
}
.day-number {
  font-size: 12px;
  font-weight: 600;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
}
.day-number.is-today {
  background: var(--green);
  border-radius: 50%;
  color: white;
}
.day-count {
  font-size: 9px;
  color: var(--muted);
  background: #f1f5ef;
  padding: 1px 5px;
  border-radius: 4px;
}
.day-events {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.event-preview {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #edf6ef;
  color: #337c52;
  border-radius: 4px;
  padding: 4px 5px;
  border-left: 2px solid #85b89a;
  font-size: 10px;
  min-width: 0;
}
.event-time {
  font-size: 9px;
  font-weight: 650;
  flex-shrink: 0;
}
.event-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.event-preview.pendente {
  background: #fbf5e8;
  border-color: #d4b978;
  color: #a07d34;
}
.event-preview.cancelado {
  background: #f5f0f0;
  border-color: #c9b9b9;
  color: #957c7c;
}
.more-events {
  font-size: 9px;
  padding-left: 5px;
  color: var(--muted);
}
.calendar-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}
.info-icon {
  display: grid;
  place-items: center;
  width: 13px;
  height: 13px;
  border: 1px solid #a4b2a7;
  border-radius: 50%;
  font-size: 9px;
  font-style: normal;
}
.today-legend {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
}
.today-legend i {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: var(--green);
}
.page-footer {
  text-align: center;
  font-size: 11px;
  color: #9aa69e;
  margin-top: 24px;
}
.day-dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0;
  width: min(520px, calc(100% - 32px));
  max-height: 85vh;
  color: var(--ink);
  box-shadow: 0 24px 80px #112c3330;
}
.day-dialog::backdrop {
  background: #173e3159;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 26px;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.dialog-heading h2 {
  font-size: 23px;
  letter-spacing: -0.7px;
  font-weight: 650;
}
.dialog-heading .subtitle {
  font-size: 12px;
  margin-top: 5px;
}
.close-button {
  font-size: 22px;
}
.dialog-content {
  padding: 8px 26px;
  min-height: 150px;
}
.appointment-list {
  padding: 0;
  list-style: none;
  margin: 0;
}
.appointment {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.appointment:last-child {
  border-bottom: 0;
}
.appointment-time {
  font-size: 13px;
  font-weight: 650;
  color: var(--green);
}
.appointment-name {
  font-weight: 600;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.appointment-kind {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.appointment-status {
  margin-left: auto;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 10px;
  background: #edf6ef;
  color: #337c52;
  flex-shrink: 0;
}
.appointment-status.pendente {
  background: #fbf5e8;
  color: #a07d34;
}
.appointment-status.cancelado {
  background: #f5f0f0;
  color: #957c7c;
}
.empty-state {
  text-align: center;
  padding: 35px 8px;
  color: var(--muted);
}
.empty-state strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}
.empty-state p {
  font-size: 12px;
}
.dialog-footer {
  display: flex;
  justify-content: flex-end;
  padding: 16px 26px;
  border-top: 1px solid var(--line);
  background: #fafcf9;
}
.error-message {
  background: #f9eeee;
  color: #9e4545;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-block: 14px;
}
.loading-state {
  color: var(--muted);
  text-align: center;
  padding: 50px 10px;
  font-size: 13px;
}
body:has(dialog[open]) {
  overflow: hidden;
}
.login-main {
  min-height: calc(100vh - 82px);
  display: grid;
  place-items: center;
  padding: 32px 20px;
}
.login-card {
  width: 100%;
  max-width: 440px;
  padding: 36px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.login-card h1 {
  font-size: 30px;
}
.login-form {
  display: flex;
  flex-direction: column;
  margin-top: 26px;
  gap: 8px;
}
.login-form label {
  font-size: 12px;
  font-weight: 600;
  margin-top: 10px;
}
.login-form input {
  width: 100%;
  border: 1px solid #d8e3da;
  border-radius: 8px;
  padding: 11px;
  background: #fcfdfb;
  color: var(--ink);
}
.login-form .primary-button {
  margin-top: 18px;
}
@media (min-width: 1500px) {
  .main-content {
    padding-top: 64px;
  }
  .calendar-table td,
  .day-button {
    height: 136px;
    min-height: 136px;
  }
}
@media (max-width: 760px) {
  .header-inner {
    padding: 0 20px;
  }
  .site-header {
    height: 68px;
  }
  .main-content {
    padding: 28px 16px;
  }
  .page-heading {
    align-items: flex-start;
    margin-bottom: 24px;
    gap: 12px;
  }
  h1 {
    font-size: 28px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.4px;
  }
  .subtitle {
    font-size: 12px;
  }
  .primary-button {
    font-size: 11px;
    padding: 10px 12px;
    gap: 5px;
  }
  .form-action {
    margin-top: 17px;
    flex-shrink: 0;
  }
  .account-name {
    max-width: 110px;
    font-size: 11px;
  }
  .account {
    gap: 10px;
  }
  .calendar-toolbar {
    padding: 16px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .calendar-heading {
    order: 0;
  }
  .today-button {
    margin-left: auto;
    order: 1;
  }
  .month-navigation {
    width: 100%;
    justify-content: space-between;
    order: 2;
  }
  .month-summary {
    padding: 12px 16px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .legend {
    gap: 12px;
  }
  .calendar-table th {
    padding-left: 8px;
    font-size: 8px;
  }
  .calendar-table td,
  .day-button {
    height: 104px;
    min-height: 104px;
  }
  .day-button {
    padding: 8px 3px;
  }
  .day-top {
    padding: 0;
    gap: 1px;
    margin-bottom: 6px;
  }
  .day-number {
    font-size: 11px;
    width: 22px;
    height: 22px;
  }
  .day-count {
    font-size: 8px;
    padding: 0 3px;
  }
  .event-preview {
    padding: 3px 2px;
    font-size: 9px;
    display: block;
  }
  .event-time {
    display: none;
  }
  .event-name {
    display: block;
  }
  .more-events {
    font-size: 8px;
    padding: 0;
    line-height: 1.3;
  }
  .calendar-footer {
    padding: 13px 16px;
    font-size: 10px;
  }
  .page-footer {
    font-size: 10px;
  }
  .dialog-heading {
    padding: 22px;
  }
  .dialog-content {
    padding: 8px 22px;
  }
  .appointment {
    gap: 10px;
  }
  .appointment-name {
    font-size: 12px;
  }
  .appointment-status {
    font-size: 9px;
    padding: 3px 5px;
  }
  .dialog-footer .today-button {
    margin: 0;
  }
  .login-main {
    min-height: calc(100vh - 68px);
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
