.btn {
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.7rem; 
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: bold;
  transition: all 0.3s ease;
  color: white;
  text-align: center;
}

.btn:hover {
  transform: scale(1.05);
}

.btn-outline {
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  box-shadow: 0 2px 6px rgba(69, 43, 111, 0.08);

  transition:
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.btn-outline:hover {
  background: #f3ecfb;
  color: var(--darker-purple);
  border-color: var(--primary);
}

.add-prayer-button, .save-button {
  background-color: var(--primary);
}

.save-button {
  margin-top: 0.5rem;
}
.add-prayer-button:hover, .save-button:hover {
  background: var(--primary-hover);
}

.relationship-button {
  border: 1px solid #d8c8ee;
  background-color: #f3ecfb;
  color: #5f4f86;
  box-shadow: none;
}

.relationship-button:hover,
.relationship-button.is-selected {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.view-button {
  background: var(--main-blue);
  width: 50%;
}

.view-button:hover {
  background: var(--darker-blue);
}

.close-button {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-muted);
  cursor: pointer;
}

.close-button:hover {
  color:red;
}


.launch-actions .btn {
  width: 100%;
  padding: 0.9rem;
  font-size: 1.05rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.form-title {
  text-align: center;
}

.form-data {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
}

.modal {
  position: relative;
}

.modal:open {
  display: flex;
  flex-direction: column;
  width: min(90vw, 420px);
  max-height: 85vh;
  padding: 2rem;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-main);
  box-shadow: 0px 12px 30px rgba(0, 0, 0, 0.16);
  align-items: center;
  overflow: auto;
}

.modal form input, 
.modal textarea, 
.modal select {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-main);
}

.modal textarea {
  overflow: auto;
  resize: none;
}

.modal form input:focus, 
.modal textarea:focus, 
.modal select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(154, 127, 209, 0.2);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-row input {
  width: 16px;
  height: 16px;
}


.nav-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;

  background-color: #7c6aa6;
  color: white;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.08);

  font-weight: bold;
  font-size: 1rem;
  gap: 2rem;
  padding: 0.5rem 1rem;
}

.nav-logo {
  display: flex;
  background: transparent;
  padding: 0 1rem;
  border-radius: 6px;
  gap: 0.5rem;
  align-items: center;
  color: var(--text-main);
  background-color: var(--surface);
  transition: transform 180ms ease,
              box-shadow 180ms ease;
}

.temp-logo:hover .nav-logo {
  transform: translateY(-2px);

  box-shadow: 0 6px 14px rgba(0,0,0,.12);
}

.nav-logo img {
  width: 40px;
  height: 40px;
  object-fit: cover;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.current-date {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
}

.logout form {
  margin: 0;
}

.logout-button {
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
}

.logout-button:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
}

.relationship-buttons-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.person-cards {
  width: 100%;
  display: flex;
  flex-direction: column;
  color: black;
  gap: 1rem;
}

.person-card {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem;
  align-items: center;
  background-color: white;
  border-radius: 12px;
  border: 1px solid rgba(69, 43, 111, 0.12);
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.person-card:hover {
  transform: translateY(-4px);
  box-shadow: 0px 12px 8px rgba(0, 0, 0, 0.12);
}

.person-buttons {
  display:flex;
  flex-direction: column;
  gap: 0.5rem;
}

.person-info-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem;
  min-width: 140px;
  gap: 0.5rem;
}

.prayer-cards-section {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
  height: 220px;
  min-width: 280px;
  gap: 0.5rem;
  
  background-color: var(--primary-soft);
  border-radius: 10px;
  padding: 0.5rem;
  border: 1px solid var(--primary-border);
  box-shadow: 0 1px 2px rgba(63, 53, 46, 0.05);
}

.prayer-card {
  display: flex;
  align-items: flex-start;
  border: 1px solid rgba(69, 43, 111, 0.10);
  border-radius: 10px;
  transition: all 0.3s ease-out;
  gap: 0.75rem;
  padding: 0.75rem;
  background-color: white;
}

.prayer-text {
  flex: 1;
}

.update-prayer-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.add-prayer-card {
  display: flex;
  justify-content: center;
}

.mark-prayed-button {
  background-color: var(--main-green);
}

.mark-prayed-button:hover  {
  background-color: var(--darker-green);
}

.edit-person-button,
.edit-prayer-button,
.deny-delete-button {
  background-color: var(--gray);
}

.edit-person-button:hover,
.edit-prayer-button:hover,
.deny-delete-button:hover {
  background-color: var(--darker-gray);
}

.delete-person-button, 
.delete-prayer-button,
.confirm-delete-button {
  background-color: var(--main-red);
}

.delete-person-button:hover, 
.delete-prayer-button:hover,
.confirm-delete-button:hover {
  background-color: var(--darker-red);
}

.flash-messages {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1rem 0;
}

.flash-message {
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  border: 1px solid;
}

.flash-success {
  background: #ecfdf3;
  border-color: #abefc6;
  color: #067647;
}

.flash-error {
  background: #fef3f2;
  border-color: #fecdca;
  color: #b42318;
}

.flash-info {
  background: var(--primary-soft);
  border-color: var(--primary-border);
  color: var(--darker-purple);
}

.flash-warning {
  background: #fffaeb;
  border-color: #fedf89;
  color: #93370d;
}