/* Base geral */
body {
  font-family: 'Montserrat', sans-serif;
  margin: 40px;
  background-color: #f9f9f9;
  color: #333;
}

h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 26px;
  text-align: center;
  color: #2c3e50;
  margin-top: 20px;
}

/* Botão padrão (menu e geral) */
.menu-button, .button-outline, .filter-form button, #addPatientModal .button-outline, #addProductModal .button-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  padding: 10px 16px;
  border: 2px solid #00c5d3;
  border-radius: 6px;
  background-color: white;
  transition: 0.3s ease;
  cursor: pointer;
  width: fit-content;
}

.menu-button:hover, .button-outline:hover, .filter-form button:hover, #addPatientModal .button-outline:hover, #addProductModal .button-outline:hover {
  background-color: #00c5d3;
  color: white;
}

/* Tabela padrão */
.catalog-table {
  width: 90%;
  margin: 20px auto;
  border-collapse: collapse;
  background-color: #fff;
  font-size: 14px;
}

.catalog-table th,
.catalog-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #ddd;
  text-align: left;
  vertical-align: middle;
}

.catalog-table th {
  background-color: #f5f5f5;
  font-weight: 600;
  color: #2c3e50;
  font-size: 15px;
}

.catalog-table tr:hover {
  background-color: #f9f9f9;
}

/* Filtro superior */
.filter-form {
  text-align: center;
  margin-top: 20px;
}

.filter-form input,
.filter-form select {
  padding: 6px 12px;
  font-size: 13px;
  margin: 0 6px;
  width: auto;
  font-family: 'Montserrat', sans-serif;
  border: 2px solid #00c5d3;
  border-radius: 6px;
  background-color: white;
  color: #333;
  transition: 0.2s ease;
}

.filter-form input:focus,
.filter-form select:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border: 2px solid #00c5d3;
  box-shadow: 0 0 4px #00c5d3;
}

/* Badges de status */
.status-badge {
  padding: 6px 10px;
  border-radius: 5px;
  font-weight: 500;
  font-size: 13px;
  color: white;
  display: inline-block;
  cursor: pointer;
}

.status-ativo {
  background-color: #28a745;
}

.status-inativo {
  background-color: #6c757d;
}

/* Menus suspensos */
.options-button {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  color: #333;
}

.options-container {
  position: relative;
  display: inline-block;
}

.options-menu {
  display: none;
  position: absolute;
  background-color: white;
  border: 1px solid #ddd;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 10;
  min-width: 160px;
  border-radius: 6px;
}

.options-menu a {
  display: block;
  padding: 10px 16px;
  text-decoration: none;
  color: #333;
  font-family: 'Montserrat', sans-serif;
  transition: background-color 0.2s;
}

.options-menu a:hover {
  background-color: #00c5d3;
  color: white;
}

/* Impressão */
@media print {
  .no-print {
    display: none !important;
  }
}

/* Modais */
#addPatientModal,
#addProductModal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#addPatientModal form,
#addProductModal form {
  background: white;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  text-align: center;
}

#addPatientModal input,
#addProductModal input,
#addPatientModal select,
#addProductModal select {
  margin: 8px 0;
  padding: 10px;
  width: 90%;
  font-family: 'Montserrat', sans-serif;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

.pre-button i, .button-wrap .next-button i {
  color: #999;
  font-size: 12px;
}

.button-wrap {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.calendar-wrap {
  width: 100%;
  padding: 30px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.elegant-calencar {
  display: flex;
  flex-wrap: wrap;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.wrap-header {
  width: 40%;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.wrap-header p#reset {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #fff;
  padding: 5px 10px;
  border-radius: 30px;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

#header .head-info {
  padding: 30px;
  color: #fff;
}

.head-day {
  font-size: 9em;
  line-height: 1;
  color: #fff;
}

.head-month {
  font-size: 2em;
  line-height: 1;
  color: #fff;
  text-transform: uppercase;
  font-weight: 300;
}

#calendar {
  width: 100%;
  border-collapse: collapse;
}

#calendar thead th {
  text-align: center;
  padding: 10px;
  font-weight: 600;
  font-size: 16px;
  color: #333;
}

#calendar td {
  width: 14.28%;
  height: 60px;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #f1f1f1;
}

#calendar td:hover {
  background-color: #e0f4ff;
}

#calendar td.today {
  background-color: #81d4fa;
  color: #fff;
  font-weight: bold;
  border-radius: 50%;
}

.event-list {
  max-height: 400px;
  overflow-y: auto;
  padding: 20px;
  background-color: #f9f9f9;
  border-left: 1px solid #ccc;
}

.event-list ul {
  padding-left: 20px;
}

.event-list li {
  margin-bottom: 10px;
  font-size: 15px;
  color: #333;
}