/* style.css */


		
		
body { 
font-family: Arial; 
background: #f4f4f4; 
padding: 20px; }

    h2 { text-align: center; margin-bottom: 10px; }
    .nav { text-align: center; margin-bottom: 20px; }
    .nav a { margin: 0 20px; text-decoration: none; font-weight: bold; color: #007BFF; }
	
	
	
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
color: #333;
    color: white;
    padding: 10px 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 40px; 
    border-bottom: 2px solid #ccc;
}

.top-bar .logo-img {
  height: 40px; 
  opacity: 0;
  transform: translateY(20px);
  animation: surgirLogo 1.2s ease-out forwards;
}

@keyframes surgirLogo {
  0% {
    opacity: 0;
    clip-path: inset(100% 0 0 0);
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translateY(0);
  }
}

.top-bar .back-btn {
    background-color: #888;
    color: white;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    text-decoration: none;
    border-radius: 4px;
}

.top-bar .back-btn:hover {
    background-color: #0056b3;
}

/* Container principal (Desktop: Menu ao lado; Mobile: Apenas conteúdo) */
.main-wrapper {
    display: flex;
    padding-top: 62px; /* Espaço para a barra superior */
}

.content { 
    padding: 20px; 
    flex-grow: 1; 
}

.menu { 
    width: 200px; 
    background-color: #f4f4f4; 
    padding: 15px; 
    min-height: calc(100vh - 62px); /* Altura do menu */
    /* Em desktop, o menu é exibido normalmente */
    display: block; 
}

.menu a { 
    display: block; 
    padding: 10px; 
    text-decoration: none; 
    color: #333; 
    border-bottom: 1px solid #ddd; 
}

.menu a:hover { 
    background-color: #ddd; 
}

/* --- Media Query para Dispositivos Móveis (max-width: 768px) --- */
@media (max-width: 768px) {
    .main-wrapper {
        flex-direction: column; /* Empilha os elementos: barra superior, depois conteúdo/menu */
    }

    .menu {
        /* Oculta o menu lateral em celulares por padrão */
        display: none; 
        width: 100%;
        min-height: auto; /* Remove a altura fixa em mobile */
        padding: 0;
    }
    
    .content {
        padding: 15px; /* Ajusta o padding para telas menores */
    }
    
    /* Nota: Para mostrar o menu em mobile, você precisaria adicionar um botão "Abrir Menu" 
       e um pouco de JavaScript para alternar o `display: none` para `display: block` */
}

/* Grid do calendário: 7 colunas */
    .calendar {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      gap: 5px;
    }

    .day {
      background: white;
      border: 1px solid #ccc;
      padding: 8px;
      min-height: 100px;
      font-size: 12px;
      overflow: hidden;
      box-shadow: 0 0 3px #ccc;
      position: relative;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
    }

    /* Área superior do quadrado com dia da semana e número */
    .day-header {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 6px;
    }
    .weekday {
      font-weight: bold;
      color: #333;
      width: 40px;
      flex: 0 0 40px;
      text-align: left;
    }
    .day-num {
      font-size: 20px;
      font-weight: bold;
      color: #007BFF;
      text-decoration: none;
    }

    /* estilo para dias fora do mês */
    .outside {
      color: #bfbfbf;
    }
    .outside .day-num { color: #bfbfbf; text-decoration: none; }
    .outside .weekday { color: #bfbfbf; }

    .atendimento {
      margin-top: 6px;
      font-size: 11px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .atendimento a { color: #333; text-decoration: none; }
    .atendimento a:hover { text-decoration: underline; }

    /* Modal */
    .modal {
      display: none;
      position: fixed;
      z-index: 999;
      left: 0; top: 0;
      width: 100%; height: 100%;
      background: rgba(0,0,0,0.6);
    }
    .modal-content {
      background: white;
      margin: 6% auto;
      padding: 20px;
      width: 90%;
      max-width: 520px;
      border-radius: 8px;
      position: relative;
    }
    .close {
      position: absolute;
      top: 10px; right: 15px;
      font-size: 20px;
      cursor: pointer;
      color: #aaa;
    }
    .close:hover { color: #000; }
    .modal-content p { margin: 5px 0; font-size: 14px; }

    @media (max-width: 768px) {
      .calendar {
        grid-template-columns: repeat(2, 1fr);
      }
      .day { min-height: 120px; }
    }
    @media (min-width: 769px) and (max-width: 1024px) {
      .calendar {
        grid-template-columns: repeat(4, 1fr);
      }
    }

    button {
  background-color: #007BFF;
  color: white;
  border: none;
  padding: 4px 4px;      /* reduz espaço interno (altura e largura) */
  font-size: 10px;       /* reduz tamanho do texto */
  line-height: 16px;     /* alinha verticalmente dentro da altura */
  height: 28px;          /* altura fixa opcional */
  min-width: 24px;       /* largura mínima */
  margin: 4px;
  border-radius: 4px;
  cursor: pointer;
}
button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}




.atendimento.outside a {
  color: #bfbfbf !important;
}
