@font-face {
  font-family: "Roboto";
  src: url('/vendor/@fontsource/roboto/files/roboto-latin-300-normal.woff2?v=7fda4c62') format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url('/vendor/@fontsource/roboto/files/roboto-latin-400-normal.woff2?v=8eff0b80') format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url('/vendor/@fontsource/roboto/files/roboto-latin-500-normal.woff2?v=115c2d84') format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url('/vendor/@fontsource/roboto/files/roboto-latin-700-normal.woff2?v=c83e4437') format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: "Roboto", sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  z-index: 0;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: var(--background-image-url);
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  filter: saturate(60%);
  z-index: -1;
}

header {
  background-color: #fff1addb !important;
  color: #257d54;
  padding: unset;
}

main {
  flex-grow: 1;
  padding: unset;
}

.container,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
  max-width: 95% !important;
}

#calendar {
  width: 100%;
  margin: 0 auto;
}

.calendar-controls {
  display: flex;
  justify-content: center;
  align-items: center;
}

.calendar-controls select,
#calendar-select {
  max-width: fit-content;
  margin: 0 5px;
  width: auto;
  min-width: 150px;
  background-color: #3e3e3e !important;
  color: white !important;
  border-color: #3e3e3e !important;
}

.calendar-controls select:hover,
.calendar-controls select:focus,
#calendar-select:hover,
#calendar-select:focus {
  background-color: #4a4a4a !important;
  border-color: #3e3e3e !important;
  box-shadow: 0 0 0 0.2rem rgba(62, 62, 62, 0.25) !important;
}

#calendar-select {
  margin-right: 5px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border: 1px solid #ddd;
  padding: 5px;
  text-align: left;
  vertical-align: top;
  width: 14.28%;
  overflow: hidden;
}

th {
  background-color: #3e3e3e !important;
  font-weight: bold !important;
  padding: 10px 5px !important;
  color: #fff !important;
}

th.weekend {
  color: #e53935;
}

.calendar-cell {
  height: 141px;
  cursor: pointer;
  position: relative;
  padding: 5px !important;
  height: 141px;
  background-color: #fafafa;
  transition: background-color 0.3s;
}

.calendar-cell > div {
  display: flex;
  flex-direction: column;
}

.calendar-cell .date {
  text-align: right;
  padding: 2px 5px;
  font-weight: bold;
  border-bottom: 1px solid #bdbdbd;
  margin-bottom: 2px;
}

.calendar-cell.weekend {
  background-color: #fafafa;
}

.calendar-cell.weekend .date {
  color: #e53935;
}

.calendar-cell.empty {
  background-color: #f2f2f2e8;
}

.calendar-cell.other-month .other-month-day {
  color: #000000;
  font-size: 0.9em;
  font-weight: 500;
  display: block;
  padding: 2px 5px;
  opacity: 0.6;
  border-bottom: 1px solid #59575757;
  margin-bottom: 2px;
}

.calendar-cell.other-month .holiday-name {
  opacity: 0.7;
}

.calendar-cell.other-month .note-preview {
  opacity: 0.8;
}

.calendar-cell.other-month:hover {
  background-color: #e8e8e8 !important;
}

.calendar-cell:hover {
  background-color: #f3f3f3;
}

.calendar-cell .note-preview {
  flex-grow: 1;
  overflow-y: auto;
  max-height: 100px;
  font-size: 0.8em;
  white-space: pre-wrap;
  word-break: break-word;
  padding: 7px;
}

.calendar-cell .note-preview .ql-editor {
  padding: 0;
}

.calendar-cell .note-preview .ql-editor p,
.calendar-cell .note-preview .ql-editor h1,
.calendar-cell .note-preview .ql-editor h2,
.calendar-cell .note-preview .ql-editor h3,
.calendar-cell .note-preview .ql-editor h4,
.calendar-cell .note-preview .ql-editor h5,
.calendar-cell .note-preview .ql-editor h6 {
  margin: 0;
  padding: 0;
}

.calendar-cell .note-preview .ql-align-center {
  text-align: center;
}

.calendar-cell .note-preview .ql-align-right {
  text-align: right;
}

.calendar-cell .note-preview .ql-align-justify {
  text-align: justify;
}

.calendar-cell .note-preview .ql-header-1 {
  font-size: 1.5em;
  font-weight: bold;
}

.calendar-cell .note-preview .ql-header-2 {
  font-size: 1.3em;
  font-weight: bold;
}

.calendar-cell .note-preview .ql-header-3 {
  font-size: 1.1em;
  font-weight: bold;
}

.calendar-cell .note-preview .ql-header-4,
.calendar-cell .note-preview .ql-header-5,
.calendar-cell .note-preview .ql-header-6 {
  font-weight: bold;
}

.calendar-cell .note-preview::-webkit-scrollbar {
  width: 6px;
}

.calendar-cell .note-preview::-webkit-scrollbar-track {
  background: #cfd8dc;
}

.calendar-cell .note-preview::-webkit-scrollbar-thumb {
  background: #90a4ae;
  border-radius: 3px;
}

.calendar-cell .note-preview::-webkit-scrollbar-thumb:hover {
  background: #607d8b;
}

.modal-dialog {
  display: flex;
  align-items: center;
  min-height: calc(100% - 1rem);
}

.modal-content {
  width: 100%;
}

#editor {
  height: 300px;
  margin-bottom: 20px;
}

footer {
  background-color: #fff1addb !important;
  color: #257d54;
  padding: 10px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.bg-readonly {
  background-color: #eceff1 !important;
  color: #212121;
}

.bg-readonly:focus {
  background-color: #eceff1 !important;
  color: #212121;
}

.ql-color .ql-picker-options [data-value="custom-color"]::before {
  content: "Custom";
}

.ql-color .ql-picker-options [data-value="custom-color"] {
  background: linear-gradient(to right, red, orange, yellow, green, blue, indigo, violet);
  color: transparent;
}

.ql-code-block-container {
  background-color: #263238;
  padding: 5px;
  border-radius: 5px;
  overflow: auto;
  color: #fff;
}

.ql-code-block {
  font-family: "Courier New", Courier, monospace;
  white-space: pre-wrap;
}

.ql-align-center .ql-code-block {
  text-align: center;
}

.ql-align-right .ql-code-block {
  text-align: right;
}

.table > :not(caption) > * > * {
  padding: 5px !important;
}

.navbar-text {
  color: #257d54 !important;
}

.navbar-brand {
  color: #257d54;
}

.navbar-nav {
  --bs-nav-link-color: #257d54 !important;
}

.nav-link:focus,
.nav-link:hover {
  color: rgba(27, 29, 29, 0.7);
}

.custom-alert-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 300px;
  width: auto;
}

.custom-alert {
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
  overflow: hidden;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease-in-out;
  width: 100%;
}

.custom-alert.show {
  opacity: 1;
  transform: translateX(0);
}

.custom-alert-content {
  display: flex;
  align-items: center;
  padding: 12px 15px;
}

.custom-alert-icon {
  margin-right: 10px;
  font-size: 20px;
  flex-shrink: 0;
}

.custom-alert-message {
  flex-grow: 1;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
}

.custom-alert-progress {
  height: 4px;
  width: 100%;
}

.custom-alert-progress-bar {
  height: 100%;
  width: 100%;
  transition: width 3s linear;
}

.custom-alert-success {
  border-left: 4px solid #28a745;
}

.custom-alert-success .custom-alert-icon {
  color: #28a745;
}

.custom-alert-success .custom-alert-progress-bar {
  background-color: #28a745;
}

.custom-alert-danger {
  border-left: 4px solid #dc3545;
}

.custom-alert-danger .custom-alert-icon {
  color: #dc3545;
}

.custom-alert-danger .custom-alert-progress-bar {
  background-color: #dc3545;
}

.custom-alert-warning {
  border-left: 4px solid #ffc107;
}

.custom-alert-warning .custom-alert-icon {
  color: #ffc107;
}

.custom-alert-warning .custom-alert-progress-bar {
  background-color: #ffc107;
}

.calendar-cell.holiday {
  background-color: #ffebee;
}

.calendar-cell .holiday-name {
  font-size: 0.7em;
  color: #e53935;
  text-align: center;
  margin-bottom: 2px;
}

blockquote {
  color: #424242;
  border-left: 5px solid #b0bec5;
  padding: 5px 10px;
  background-color: #eceff1;
}

/* Altera os botões btn-primary apenas dentro dos cards que você colou */
.container .btn-primary {
  background-color: #168378;
  border-color: #1e6836;
  color: white;
}

.container .btn-primary:hover {
  background-color: #45b76d; /* Tom mais escuro no hover */
  border-color: #45b76d;
}

.calendar-cell .fw-bold {
  border-bottom: 1px solid #595757ab;
  margin-bottom: 2px;
  display: block;
}

.birthday-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #595757ab;
  margin-bottom: 2px;
}

.birthday-emoji {
  font-size: 1em;
  flex-shrink: 0;
}

.birthday-emoji.bottom-left,
.birthday-emoji.bottom-right {
  position: absolute;
  font-size: 1.2em;
}

.birthday-emoji.bottom-left {
  bottom: 2px;
  left: 2px;
}

.birthday-emoji.bottom-right {
  bottom: 2px;
  right: 2px;
}

.birthday-message {
  font-size: 0.7em;
  color: #e74c3c;
  font-weight: bold;
  flex-grow: 1;
  text-align: center;
  margin: 0 4px;
}

.day-number-birthday {
  flex-shrink: 0;
  font-size: 1em;
  font-weight: bold;
  border-bottom: none !important;
  margin-bottom: 0 !important;
}

.calendar-cell.today {
  background-color: #fff9d9 !important; /* Amarelo claro para o dia atual */
}

.calendar-cell.birthday {
  background-color: #fff0f5;
}

/* Se o dia atual for também o aniversário, podemos combinar os estilos */
.calendar-cell.today.birthday {
  background: linear-gradient(135deg, #fff9d9 50%, #fff0f5 50%) !important;
}

.birthday-indicator {
  font-size: 0.75em;
  color: #d32f2f;
  font-weight: 500;
  padding: 2px 4px;
  background-color: #ffebee;
  border-radius: 3px;
  margin-top: 2px;
  display: inline-block;
  max-width: fit-content;
}

.reminder-indicator {
  position: absolute;
  top: 2px;
  left: 2px;
  font-size: 0.9em;
  z-index: 10;
  opacity: 0.8;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.calendar-cell .note-preview {
  flex-grow: 1;
  overflow-y: auto;
  max-height: 90px;
  font-size: 0.8em;
  white-space: pre-wrap;
  word-break: break-word;
}

.holiday-name {
  font-size: 0.7em;
  color: #e53935;
  text-align: center;
  margin-bottom: 2px;
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 0 !important;
}

.text-light {
  color: rgb(37, 125, 84) !important;
}

/* Responsividade */
@media screen and (max-width: 768px) {
  .calendar-cell {
    height: 100px;
  }

  .calendar-cell .note-preview {
    font-size: 0.7em;
    max-height: 40px;
  }

  .birthday-emoji {
    font-size: 0.85em;
  }

  .birthday-message {
    font-size: 0.6em;
  }

  .day-number-birthday {
    font-size: 0.9em;
  }
}

