/* Container principal */
.dashboard-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

/* Card de Boas-vindas */
.welcome-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.welcome-title {
  margin: 0 0 0.5rem 0;
  color: #1a202c;
  font-size: 2rem;
}

.welcome-subtitle {
  margin: 0;
  color: #718096;
  font-size: 1.1rem;
}

.welcome-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Botões */
.btn-primary {
  padding: 8px 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  transition: transform 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-primary.disabled,
.btn-primary:disabled {
  background: #e2e8f0;
  color: #4a5568;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  padding: 8px 16px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(245, 87, 108, 0.3);
  transition: transform 0.2s;
  display: inline-block;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

/* Seção dos Pets */
.pets-section {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.pets-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.pets-title {
  margin: 0;
  color: #1a202c;
  font-size: 1.75rem;
}

.pets-subtitle {
  margin: 0.5rem 0 0 0;
  color: #718096;
}

.pets-counter {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
}

/* Grid de Pets */
.pets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* Card do Pet */
.pet-card {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.pet-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.pet-card-decoration {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
}

.pet-card-content {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
}

.pet-avatar {
  background: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.pet-name {
  margin: 0 0 0.5rem 0;
  color: #1a202c;
  font-size: 1.5rem;
  font-weight: 700;
}

.pet-info {
  margin: 0 0 1rem 0;
  color: #4a5568;
  font-size: 1rem;
}

.pet-card-footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0 1.5rem 1.5rem 1.5rem;
}

.btn-edit {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: transform 0.2s;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  box-sizing: border-box;
}

.btn-edit:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

/* Estado vazio */
.empty-state {
  text-align: center;
  padding: 3rem;
  background: #f7fafc;
  border-radius: 12px;
  border: 2px dashed #cbd5e0;
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.empty-state-text {
  color: #718096;
  font-size: 1.1rem;
  margin: 0;
}

.empty-state-subtext {
  color: #a0aec0;
  margin: 0.5rem 0 0 0;
}

/* Notification overlay */
.notification-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 4rem 1.5rem;
  background: rgba(26, 32, 44, 0.45);
  backdrop-filter: blur(4px);
  z-index: 1050;
}

.notification-overlay.is-open {
  display: flex;
}

.notification-overlay__content {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  padding: 2rem;
  max-width: 1024px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  z-index: 1;
}

.notification-overlay__backdrop {
  position: absolute;
  inset: 0;
  display: block;
  background: rgba(26, 32, 44, 0.45);
}

.notification-overlay__close {
  font-weight: 600;
}

.notification-overlay__close:hover {
  text-decoration: none;
}

/* Responsividade */
@media (max-width: 768px) {
  .dashboard-container {
    padding: 1rem;
  }

  .welcome-card,
  .pets-section {
    padding: 1.5rem;
  }

  .pets-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .pets-grid {
    grid-template-columns: 1fr;
  }

  .welcome-title {
    font-size: 1.5rem;
  }
}
.diary-page-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.diary-header {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.diary-title {
  margin: 0 0 0.5rem 0;
  color: #1a202c;
  font-size: 2rem;
}

.diary-subtitle {
  margin: 0;
  color: #718096;
  font-size: 1.1rem;
}

.diary-content-section {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.diary-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.filter-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.filter-form label {
  font-weight: 600;
  color: #4a5568;
}

.filter-form input[type="date"] {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #cbd5e0;
}

.diary-feed {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.diary-entry-card {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.entry-date {
  font-weight: 600;
  color: #718096;
  font-size: 0.9rem;
  margin: 0 0 0.75rem 0;
}

.entry-content {
  color: #2d3748;
  line-height: 1.6;
  margin: 0;
  white-space: pre-wrap;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(30, 41, 59, 0.6);
}

.modal-content {
  background-color: white;
  margin: 10vh auto;
  padding: 2rem;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-title {
  margin: 0;
  color: #1a202c;
  font-size: 1.5rem;
}

.close-btn {
  color: #a0aec0;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
}

.close-btn:hover {
  color: #4a5568;
}

.modal-form .form-group {
  margin-bottom: 1rem;
}

.modal-form label {
  display: block;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 0.5rem;
}

.modal-form input,
.modal-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
}

.modal-form .form-actions {
  margin-top: 1.5rem;
  text-align: right;
}

.btn-back {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  color: #764ba2;
  text-decoration: none;
  margin-bottom: 1rem;
}

.btn-back:hover {
  text-decoration: underline;
}

.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.entry-header .entry-date {
  margin: 0;
}

.btn-delete {
  padding: 4px 10px;
  background: #f5576c;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background-color 0.2s;
}

.btn-delete:hover {
  background: #d64555;
}

@media (max-width: 768px) {
  .diary-page-container, .diary-header, .diary-content-section {
    padding: 1.5rem;
  }
  .diary-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
.container-custom {
    display: flex;
    height: 100vh;
}

.left-panel {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
}

.right-panel {
    flex: 1;
    background: #007bff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-box {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    width: 350px;
    text-align: center;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.1);
}

.login-box h2 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

.login-box p {
    margin: 10px 0 20px;
    color: #555;
}

.input-group {
    margin-bottom: 15px;
    text-align: left;
}

.input-group input {
    width: calc(100% - 2 * 12px - 1px);
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
}

.btn-login {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 25px;
    background: #007bff;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

.btn-login:hover {
    background: #0056b3;
}

.forgot-link {
    display: block;
    margin-top: 15px;
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}

.forgot-link:hover {
    text-decoration: underline;
}

.register-link {
    color: #007bff;
    text-decoration: none;
}

.register-link:hover {
    text-decoration: underline;
}
.pets-new {
  font-family: "Arial", sans-serif;
  background-color: #f9fafb;
  display: flex;
  justify-content: center;
  padding: 2rem;
}

.title {
  text-align: center;
  color: #333;
  margin-bottom: 2rem;
}

.pet-form {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  width: 400px;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: bold;
  color: #555;
}

.form-control {
  width: 100%;
  padding: 0.6rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

.form-actions {
  text-align: center;
  margin-top: 1.5rem;
}

.btn {
  background-color: #4f46e5;
  color: #fff;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn:hover {
  background-color: #4338ca;
}
/*
  Estilos de layout aplicados apenas à página de registro.
  Adicione a classe "registration-body" à tag <body> da sua página de registro.
*/
.registration-body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Estilos específicos para o formulário de registro,
  garantindo que não afetem outras páginas.
*/
.registration-container {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    width: 400px;
    text-align: center;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.1);
}

.registration-container h1 {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: bold;
}

.registration-container p {
    margin-bottom: 20px;
    color: #555;
}

.registration-container .form-group {
    margin-bottom: 15px;
    text-align: left;
}

.registration-container .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.registration-container .form-group input[type="text"],
.registration-container .form-group input[type="password"] {
    width: calc(100% - 24px);
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
}

.registration-container .form-actions {
    margin-top: 20px;
}

.registration-container .form-actions input[type="submit"] {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 25px;
    background: #007bff;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
}

.registration-container .form-actions input[type="submit"]:hover {
    background: #0056b3;
}

/* Estilos para mensagens de erro, agora dentro do contêiner */
.registration-container #error_explanation {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px 20px;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: left;
}

.registration-container #error_explanation h2 {
    font-size: 16px;
    margin-top: 0;
}

.registration-container #error_explanation ul {
    margin: 0;
    padding-left: 20px;
}

.registration-container #error_explanation li {
    font-size: 14px;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *



 */
.alert {
    position: fixed;
    top: 20px;
    right: -10px;
    color: #1a202c;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 2100;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(31, 41, 55, 0.15);
    min-width: 220px;
    max-width: 280px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    font-weight: 600;
    text-align: left;
}

.alert-notice {
  background-color: #ecfdf5;
  color: #047857;
  border-color: rgba(16, 185, 129, 0.4);
}

.alert-alert,
.alert-error {
  background-color: #fef2f2;
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.4);
}

.closebtn {
  margin-left: auto;
  color: inherit;
  font-weight: bold;
  float: right;
  font-size: 22px;
  line-height: 20px;
  cursor: pointer;
  transition: 0.3s;
}

.closebtn:hover {
  color: #111827;
}
  
header {
  background-color: #f0f0f0;
  padding: 12px; /* old 20px */
}

nav ul {
  list-style: none;
  display: flex;
  gap: 15px;
}

body {
  background-color: #f8f9fa;
}

.text-azul-escuro {
  color: #0675e3;
}

.imagem-fixa{
  width: 500px;
  height: 300px;
  /*object-fit: cover;  opcional: ajusta o corte sem distorcer */
   object-fit: contain;  /* mostra tudo dentro do espaço */
  /* max-width: 30px;*/
  /* margin: auto;*/
}


footer {
  background-color: #ccc;
  text-align: center;
  padding: 10px;
  margin: 0 auto;     /* centraliza horizontalmente */

}
