* {
  box-sizing: border-box;
}

:root {
  --primary: #0d9488;
  --primary-light: #14b8a6;
  --secondary: #134e4a;
  --accent: #5eead4;
  --bg: #111827;
  --text: #f3f4f6;
  --card-bg: #1f2937;
  --border: #374151;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding-top: 70px;
  padding-bottom: 60px;
}

header {
  background: var(--card-bg);
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  z-index: 1000;
}
header a {
  color: white;
  text-decoration: none;
  margin: 0 0.5rem;
}
header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-left: 2rem;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

#nav-donate {
  background-color: #ff6b6b;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.2s;
}
#nav-donate:hover {
  background-color: #ee5a5a;
}

.user-menu {
  position: relative;
  margin-left: 0.5rem;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  background: white;
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: rgba(57, 59, 57, 0.9215686275);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  margin-top: 0.5rem;
  display: none;
  overflow: hidden;
  border: grey solid 1px;
}
.user-dropdown a {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  padding: 0.75rem 1rem 0.75rem 0;
  width: 100%;
  box-sizing: border-box;
  color: white;
  text-decoration: none;
}
.user-dropdown a svg, .user-dropdown a .emoji-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  font-size: 16px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}
.user-dropdown a span:first-child {
  text-align: right;
}
.user-dropdown a:hover {
  background: #2e7d32;
  color: white;
}
.user-dropdown a:first-child {
  border-radius: 8px 8px 0 0;
}
.user-dropdown a:last-child {
  border-radius: 0 0 8px 8px;
}
.user-dropdown #dropdown-logout {
  display: none;
  color: #f44336;
  font-weight: bold;
}
.user-dropdown #dropdown-logout:hover {
  background: #f44336;
  border-radius: 0 0 8px 8px;
  color: white;
}

.logo {
  position: absolute;
  top: 10px;
  left: 20px;
  display: flex;
  align-items: center;
  height: 84px;
  white-space: nowrap;
}
.logo img {
  min-width: 10vw;
  max-width: 20vw;
  width: auto;
  height: 100%;
}
.logo span {
  position: absolute;
  left: 100%;
  top: 30%;
  transform: translateY(-50%);
  margin-left: 0.75rem;
  font-size: 2rem;
  font-weight: bold;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.hero {
  text-align: center;
  padding: 3rem;
}
.hero h1 {
  font-size: 2.5rem;
  color: var(--text);
}

.pet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card-bg {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 1.5rem;
}

.profile-section {
  margin-bottom: 1.5rem;
}
.profile-section h2 {
  margin-top: 0;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  border: #0d9488 solid 2px;
}
.profile-header h1 {
  margin: 0;
}
.profile-header .btn {
  flex-shrink: 0;
}

.sticky-section {
  position: sticky;
  top: 90px;
  z-index: 100;
}

.form-row {
  margin-bottom: 1rem;
}
.form-row label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
  color: var(--text);
}
.form-row input, .form-row select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  color: var(--text);
  box-sizing: border-box;
}
.form-row input:disabled {
  color: lightgrey;
  background: var(--card-bg);
}
.form-row input[type=password] {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg) !important;
  color: var(--text) !important;
  box-sizing: border-box;
}
.form-row input:-webkit-autofill,
.form-row input:-webkit-autofill:hover,
.form-row input:-webkit-autofill:focus,
.form-row input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px var(--bg) inset !important;
  -webkit-text-fill-color: var(--text) !important;
}

.password-hidden {
  display: none;
}

.form-row-two-col {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-row-two-col > div {
  flex: 1;
}
.form-row-two-col label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
  color: var(--text);
}
.form-row-two-col input, .form-row-two-col select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  color: var(--text);
  box-sizing: border-box;
}

.fee-input-group {
  display: flex;
  gap: 0.5rem;
}
.fee-input-group input {
  flex: 2;
}
.fee-input-group select {
  flex: 1;
}

.pet-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
  text-decoration: none;
}
.pet-card:hover {
  transform: translateY(-4px);
}
.pet-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.pet-card h3 {
  margin: 0 0 0.5rem;
  color: var(--text);
}

.pet-card-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.pet-card-body {
  padding: 1rem;
  color: white;
}

.pet-name {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.pet-name h3 {
  margin: 0;
}
.pet-name .pet-breed {
  font-size: 0.9rem;
  color: #9ca3af;
  font-weight: normal;
}

.pet-type {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.pet-sex {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  margin-left: 0.25rem;
  color: white;
}

.pet-sex.male {
  background: #3b82f6;
}

.pet-sex.female {
  background: #ec4899;
}

.pet-size {
  display: inline-block;
  background: #4b5563;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  margin-left: 0.25rem;
}

.pet-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.pet-age, .pet-rescue-date {
  display: flex;
  flex-direction: column;
}
.pet-age .label, .pet-rescue-date .label {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-bottom: 0.25rem;
}
.pet-age .value, .pet-rescue-date .value {
  color: white;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.filter-buttons .filter-btn, .filter-buttons .filter-type, .filter-buttons .filter-sex {
  padding: 0.5rem 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
  color: white;
}
.filter-buttons .filter-btn:hover, .filter-buttons .filter-type:hover, .filter-buttons .filter-sex:hover {
  background: var(--secondary);
  color: var(--text);
}
.filter-buttons .filter-btn.active, .filter-buttons .filter-type.active, .filter-buttons .filter-sex.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.filter-buttons .filter-type, .filter-buttons .filter-sex {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  font-size: 1rem;
}
.btn:hover {
  background: var(--primary-light);
}
.btn-secondary {
  background: var(--secondary);
}
.btn-secondary:hover {
  background: #244426;
}

form {
  max-width: 500px;
  margin: 2rem auto;
}
form label {
  display: block;
  margin: 1rem 0 0.25rem;
}
form input,
form select,
form textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-sizing: border-box;
}
form textarea {
  min-height: 100px;
}
form input[type=checkbox] {
  width: auto;
  height: auto;
}
form input:disabled {
  background-color: #e9ecef;
  cursor: not-allowed;
}

.auth-form {
  max-width: 400px;
  margin: 2rem auto;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}
.auth-form label {
  display: block;
  margin: 1rem 0 0.25rem;
  font-weight: 500;
}
.auth-form input,
.auth-form select,
.auth-form textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-sizing: border-box;
}

.security-info {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.auth-form-container {
  margin-bottom: 2rem;
}

.temporal-search-form {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 1rem;
}
.temporal-search-form .search-country {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.temporal-search-form .search-country label {
  margin: 0;
  font-size: 0.9rem;
}
.temporal-search-form .search-country select {
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 20rem;
}
.temporal-search-form .search-filters {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem;
}
.temporal-search-form .search-filters .search-filter {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.temporal-search-form .search-filters .search-filter label {
  margin: 0;
  font-size: 0.9rem;
}
.temporal-search-form .search-filters .search-filter input {
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 12rem;
}
.temporal-search-form .search-filters .search-filter input[id=search-state] {
  width: 10rem;
}
.temporal-search-form .search-filters .search-filter input[id=search-zip] {
  width: 7rem;
}
@media (max-width: 800px) {
  .temporal-search-form {
    flex-direction: column;
    align-items: stretch;
  }
  .temporal-search-form .search-country select,
.temporal-search-form .search-filters {
    width: 100%;
  }
  .temporal-search-form .search-filters {
    flex-direction: column;
  }
  .temporal-search-form .search-filters input {
    width: 100%;
  }
}

.pet-detail {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}
.pet-detail-header {
  padding: 2rem;
}
.pet-detail-body {
  padding: 2rem;
}

.message {
  padding: 1rem;
  border-radius: 6px;
  margin: 1rem 0;
}
.message.error {
  background: #fee;
  color: #c00;
}
.message.success {
  background: #efe;
  color: #060;
}

.pet-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
  padding: 1rem;
  background: var(--secondary);
  border-radius: 8px;
}

.detail-item {
  padding: 0.25rem 0;
}

.detail-section {
  margin: 1rem 0;
  padding: 1rem;
  background: var(--card-bg);
  border-radius: 8px;
}

.pet-breed {
  font-size: 1.2rem;
  color: var(--primary-light);
  font-style: italic;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem;
}
.checkbox-group label {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  margin: 0 !important;
  cursor: pointer;
}
.checkbox-group input[type=checkbox] {
  width: auto !important;
  height: auto !important;
  margin: 0;
  cursor: pointer;
}

.roles-section {
  margin: 1rem 0;
}

.urgent-badge {
  background: #ff6b6b;
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-weight: bold;
  margin: 1rem 0;
  text-align: center;
}

.pet-main-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.pet-detail-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.image-management {
  margin: 1.5rem 0;
  padding: 1rem;
  background: var(--secondary);
  border-radius: 8px;
}
.image-management h3 {
  margin-top: 0;
}

.image-upload-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}
.image-upload-form input[type=file] {
  flex: 1;
  min-width: 200px;
}
.image-upload-form label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
}

.pet-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.pet-image-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
}
.pet-image-item.primary {
  border-color: var(--primary);
}
.pet-image-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.pet-image-actions {
  display: flex;
  gap: 0.25rem;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  flex-wrap: wrap;
}

.primary-badge {
  color: var(--primary-light);
  font-weight: bold;
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
}

.btn-small {
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
}

.pet-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn-danger {
  background: #dc3545;
}
.btn-danger:hover {
  background: #c82333;
}

#auth-form #register-form #register-button {
  width: 100%;
}
#auth-form #login-btn,
#auth-form #magic-link-btn,
#auth-form #password-login-btn {
  width: 100%;
}
#auth-form .form-actions {
  flex-direction: column;
  gap: 0;
}
#auth-form .form-actions #register-page-login {
  width: 100%;
}

.lang-dropdown {
  position: relative;
  display: inline-block;
  margin-left: 1rem;
}
.lang-dropdown .lang-dropbtn {
  background: transparent;
  border: none;
  color: white;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  font-size: 1.2rem;
}
.lang-dropdown .lang-dropbtn:hover {
  opacity: 0.8;
}
.lang-dropdown .lang-dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background: var(--secondary);
  min-width: 150px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  border-radius: 4px;
}
.lang-dropdown .lang-dropdown-content .lang-option {
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}
.lang-dropdown .lang-dropdown-content .lang-option:hover {
  background: var(--primary);
}

footer {
  text-align: center;
  padding: 1rem 1.5rem;
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  color: var(--text);
  font-size: 0.9rem;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
}
footer a {
  color: var(--accent);
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}
footer span {
  color: var(--text);
}

.policy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 8px;
  color: var(--text);
}
.policy-content h1 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.policy-content h2 {
  color: var(--primary-light);
  margin-top: 2rem;
}
.policy-content p {
  line-height: 1.6;
}

.verification-container {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  text-align: center;
}

.verification-success,
.verification-error {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 3rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.verification-success {
  border: 2px solid #4CAF50;
}

.verification-error {
  border: 2px solid #f44336;
}

.success-title,
.error-title {
  font-size: 1.8rem;
  margin: 1.5rem 0;
}

.success-title {
  color: #4CAF50;
}

.error-title {
  color: #f44336;
}

.success-icon,
.error-icon {
  margin: 1.5rem 0;
}

.success-message,
.error-message {
  font-size: 1.1rem;
  color: var(--text);
  margin: 1rem 0;
}

.redirect-message {
  font-size: 1rem;
  color: #9ca3af;
  margin: 1.5rem 0;
}

.countdown {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-light);
}

.login-prompt {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.login-prompt p {
  margin: 0;
}
.login-prompt a {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: bold;
}
.login-prompt a:hover {
  text-decoration: underline;
}

.try-again {
  margin-top: 1.5rem;
}
.try-again a {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: bold;
}
.try-again a:hover {
  text-decoration: underline;
}

.location-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.location-card {
  padding: 1.5rem;
}
.location-card h3 {
  margin: 0 0 0.5rem;
  color: var(--accent);
}
.location-card .location-address {
  color: #9ca3af;
  margin: 0.5rem 0;
}
.location-card .location-phone,
.location-card .location-email,
.location-card .location-description {
  margin: 0.5rem 0;
}
.location-card .location-website a {
  color: var(--primary-light);
  text-decoration: none;
}
.location-card .location-website a:hover {
  text-decoration: underline;
}

.form-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.form-modal-content {
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
}
.form-modal-content h2 {
  margin-top: 0;
  color: var(--accent);
}

.admin-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
}

.admin-tab-btn {
  background: transparent;
  border: none;
  padding: 0.75rem 1rem;
  cursor: pointer;
  color: var(--text);
  font-size: 1rem;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}
.admin-tab-btn:hover {
  color: var(--primary-light);
}
.admin-tab-btn.active {
  color: var(--primary-light);
  border-bottom-color: var(--primary-light);
}

.admin-tab-content {
  display: none;
}
.admin-tab-content.active {
  display: block;
}

.user-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}
.user-table th, .user-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.user-table th {
  color: var(--accent);
  font-weight: 600;
}

.user-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-right: 0.25rem;
}
.user-badge.admin {
  background: var(--primary);
  color: white;
}
.user-badge.banned {
  background: #dc3545;
  color: white;
}
.user-badge.active {
  background: #28a745;
  color: white;
}

.banned-row {
  background: rgba(220, 53, 69, 0.1);
}

/*# sourceMappingURL=style.css.map */
