/* ARK Identity Discipleship App - Updated Styles */

:root {
  /* ARK Identity Brand Colors */
  --ark-navy: #1a2b3c;
  --ark-teal: #143348;
  --ark-maroon: #5f0c0b;
  --ark-gold: #e8b562;
  --ark-light-gold: #ccb08e;
  --ark-dark-gold: #9d855a;
  --ark-cream: #e7b360;
  --ark-orange: #f5a623;
  --ark-neon-green: #00ff66;
  --bright-blue: #3b82f6;
  
  /* 3D Framework Colors */
  --head: #143348;
  --heart: #5f0c0b;
  --hands: #e8b562;
  
  /* UI Colors */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', Arial, sans-serif;
  background: linear-gradient(to bottom, var(--gray-50), var(--gray-100));
  color: var(--gray-900);
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}

/* Header - Updated with Maroon Background */
.header {
  background: var(--ark-maroon);
  color: white;
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content {
  max-width: 28rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-title h1 {
  font-size: 1.25rem;
  margin-bottom: 0.125rem;
}

.header-title h1 .ark-word {
  color: var(--ark-gold);
}

.header-title h1 .identity-word {
  color: white;
}

.header-title p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
}

.streak-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff7ed;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
}

.streak-badge svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #f97316;
}

.streak-text {
  text-align: right;
}

.streak-label {
  font-size: 0.75rem;
  color: var(--gray-600);
}

.streak-value {
  font-weight: 700;
  color: #ea580c;
}

.main-content {
  max-width: 28rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Passage of the Day Card */
.passage-card {
  background: linear-gradient(135deg, var(--head) 0%, #1a3f58 100%);
  color: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.passage-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.passage-header svg {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

.passage-title {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.passage-theme {
  font-size: 0.75rem;
  opacity: 0.75;
  margin-top: 0.25rem;
}

.passage-reference {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.passage-text {
  font-size: 0.9rem;
  line-height: 1.7;
  opacity: 0.95;
  margin-bottom: 1.5rem;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.passage-text::-webkit-scrollbar {
  width: 6px;
}

.passage-text::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.passage-text::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.passage-text::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.passage-preview {
  font-style: italic;
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.loading-text {
  font-size: 0.875rem;
  opacity: 0.8;
  font-style: italic;
}

.btn-primary {
  width: 100%;
  background: white;
  color: var(--head);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: var(--gray-100);
  transform: translateY(-1px);
}

/* DNA Toolkit Section - Updated */
.toolkit-section {
  margin-top: 2rem;
}

.toolkit-header {
  text-align: center;
  margin-bottom: 2rem;
}

.toolkit-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ark-navy);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.toolkit-subtitle {
  font-size: 1rem;
  color: var(--gray-600);
}

/* Navigation Cards Grid - Updated with Dark Backgrounds */
.nav-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.nav-card {
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.nav-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* 3D Journal Card - Black with Bright Blue Accent */
.nav-card.journal {
  background: #111827;
  color: white;
}

.nav-card.journal::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--bright-blue);
}

/* Creed Cards - Maroon with Gold Accent */
.nav-card.creed {
  background: var(--ark-maroon);
  color: white;
}

.nav-card.creed::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ark-gold);
}

/* ARK Courses - Gold with Maroon Accent */
.nav-card.courses {
  background: var(--ark-gold);
  color: var(--gray-900);
}

.nav-card.courses::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ark-maroon);
}

/* DNA Groups - Dark Blue with Bright Blue Accent */
.nav-card.groups {
  background: #1e3a8a;
  color: white;
}

.nav-card.groups::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--bright-blue);
}

.card-icon-wrapper {
  margin-bottom: 1rem;
}

.card-icon {
  width: 4rem;
  height: 4rem;
}

.card-title {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.card-badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Badge Colors */
.nav-card.journal .card-badge {
  background: var(--bright-blue);
  color: white;
}

.nav-card.creed .card-badge {
  background: var(--ark-gold);
  color: var(--gray-900);
}

.nav-card.courses .card-badge {
  background: var(--ark-maroon);
  color: white;
}

.nav-card.groups .card-badge {
  background: var(--bright-blue);
  color: white;
}

/* Profile Section */
.profile-section {
  border-top: 1px solid var(--gray-200);
  padding-top: 1.5rem;
}

.profile-card {
  background: white;
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
}

.profile-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.profile-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.profile-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: rgba(26, 43, 60, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--ark-navy);
}

.profile-info h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
}

.profile-info p {
  font-size: 0.75rem;
  color: var(--gray-600);
}

.profile-arrow svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--gray-400);
}

/* Journal Page */
.journal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.back-btn, .archive-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem;
}

.back-btn:hover, .archive-btn:hover {
  color: white;
}

.back-btn svg, .archive-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.page-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
}

.journal-form {
  padding: 2rem 1.5rem;
  max-width: 42rem;
  margin: 0 auto;
}

.form-section {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
}

.form-input:focus {
  outline: none;
  border-color: var(--head);
  box-shadow: 0 0 0 3px rgba(20, 51, 72, 0.1);
}

.form-textarea-large {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  resize: vertical;
  min-height: 200px;
}

.form-textarea-large:focus {
  outline: none;
  border-color: var(--head);
  box-shadow: 0 0 0 3px rgba(20, 51, 72, 0.1);
}

.dimension-card {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
}

.dimension-card.head { border-left: 4px solid var(--head); }
.dimension-card.heart { border-left: 4px solid var(--heart); }
.dimension-card.hands { border-left: 4px solid var(--hands); }

.dimension-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.dimension-badge {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
}

.dimension-badge.head {
  background: rgba(20, 51, 72, 0.1);
  color: var(--head);
}

.dimension-badge.heart {
  background: rgba(95, 12, 11, 0.1);
  color: var(--heart);
}

.dimension-badge.hands {
  background: rgba(232, 181, 98, 0.1);
  color: var(--hands);
}

.dimension-title {
  font-size: 1.125rem;
  font-weight: 700;
}

.dimension-title.head { color: var(--head); }
.dimension-title.heart { color: var(--heart); }
.dimension-title.hands { color: var(--hands); }

.dimension-subtitle {
  font-size: 0.75rem;
  color: var(--gray-600);
}

.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  resize: none;
  min-height: 150px;
}

.form-textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(20, 51, 72, 0.1);
}

.dimension-card.head .form-textarea:focus,
.dimension-card.head .form-textarea-large:focus {
  border-color: var(--head);
}

.dimension-card.heart .form-textarea:focus {
  border-color: var(--heart);
}

.dimension-card.hands .form-textarea:focus {
  border-color: var(--hands);
}

.commitment-box {
  margin-top: 1rem;
  padding: 1rem;
  background: #fff7ed;
  border-radius: 0.5rem;
}

.commitment-field {
  margin-bottom: 0.75rem;
}

.commitment-field:last-child {
  margin-bottom: 0;
}

.btn-save {
  width: 100%;
  background: var(--ark-neon-green);
  color: var(--gray-900);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
}

.btn-save:hover {
  opacity: 0.9;
}

.btn-save:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Archive View */
.archive-list {
  padding: 2rem 1.5rem;
}

.archive-empty {
  text-align: center;
  padding: 3rem 1rem;
}

.archive-empty p {
  color: var(--gray-500);
  margin-bottom: 1rem;
}

.archive-empty button {
  color: var(--head);
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}

.archive-entry {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  margin-bottom: 1rem;
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.archive-entry:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

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

.archive-entry-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
}

.archive-entry-date {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.archive-entry-preview {
  font-size: 0.875rem;
  color: var(--gray-600);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Courses Page */
.courses-header {
  margin-bottom: 2rem;
}

.courses-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ark-navy);
  margin-bottom: 0.5rem;
}

.courses-subtitle {
  font-size: 1rem;
  color: var(--gray-600);
}

.course-card {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-bottom: 1.5rem;
  transition: box-shadow 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.course-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.course-content {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
}

.course-image {
  width: 120px;
  height: 160px;
  object-fit: cover;
  border-radius: 0.5rem;
  flex-shrink: 0;
}

.course-info {
  flex: 1;
}

.course-info h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--gray-900);
}

.course-sessions {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-bottom: 0.75rem;
}

.course-description {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.5rem;
}

.course-theme {
  font-size: 0.875rem;
  color: var(--gray-600);
}

/* Creed Cards Styles */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.category-card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
  text-align: center;
  border-top: 4px solid;
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.category-count {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.category-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-700);
}

.card-of-day-section {
  background: linear-gradient(135deg, var(--heart) 0%, #7f0f0e 100%);
  color: white;
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-of-day-title {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
  margin-bottom: 1rem;
}

/* Card Flip Container */
.flip-card-container {
  perspective: 1000px;
  margin-bottom: 2rem;
  min-height: 300px;
}

.flip-card {
  position: relative;
  width: 100%;
  min-height: 300px;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  cursor: pointer;
}

.flip-card.flipped {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  width: 100%;
  min-height: 300px;
  backface-visibility: hidden;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.card-face-front {
  background: white;
  color: var(--gray-900);
  border: 3px solid;
}

.card-face-back {
  background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%);
  color: white;
  transform: rotateY(180deg);
}

.card-category-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
  margin-bottom: 1rem;
}

.card-question {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.card-tap-hint {
  font-size: 0.875rem;
  opacity: 0.6;
  margin-top: 1rem;
}

.card-answer {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.card-scripture {
  font-size: 0.875rem;
  font-style: italic;
  opacity: 0.8;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.card-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.btn-secondary {
  background: white;
  color: var(--gray-900);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s;
  flex: 1;
  min-width: 120px;
}

.btn-secondary:hover {
  background: var(--gray-100);
}

.btn-mastered {
  background: var(--ark-gold);
  color: var(--gray-900);
}

.btn-mastered:hover {
  background: var(--ark-light-gold);
}

.mastered-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ark-gold);
  color: var(--gray-900);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.card-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
}

.card-nav-btn {
  background: var(--gray-200);
  color: var(--gray-700);
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.card-nav-btn:hover:not(:disabled) {
  background: var(--gray-300);
}

.card-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.card-progress {
  font-size: 0.875rem;
  color: var(--gray-600);
  font-weight: 600;
}

.cards-list {
  display: grid;
  gap: 1rem;
}

.card-list-item {
  background: white;
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: box-shadow 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-left: 4px solid;
}

.card-list-item:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.card-list-question {
  font-weight: 600;
  color: var(--gray-900);
  flex: 1;
}

.card-list-mastered {
  background: var(--ark-gold);
  color: var(--gray-900);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Utility Classes */
.hidden {
  display: none !important;
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
  .main-content {
    padding: 1.5rem 1rem;
  }
  
  .passage-card {
    padding: 1.5rem;
  }
  
  .nav-grid {
    gap: 0.75rem;
  }
  
  .nav-card {
    padding: 1.25rem;
  }
  
  .course-content {
    flex-direction: column;
  }
  
  .course-image {
    width: 100%;
    height: 200px;
  }
}

/* Export Menu Styles */
.export-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.export-menu-content {
  background: white;
  border-radius: 12px;
  padding: 30px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.export-menu-content h3 {
  margin-bottom: 20px;
  color: #5f0c0b;
  font-size: 24px;
  text-align: center;
}

.export-option {
  width: 100%;
  padding: 15px;
  margin-bottom: 10px;
  background: #5f0c0b;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: left;
}

.export-option:hover {
  background: #7d1010;
  transform: translateY(-2px);
}

.archive-entry-wrapper {
  position: relative;
  margin-bottom: 15px;
}

.archive-entry-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  justify-content: flex-end;
}

.entry-action-btn {
  background: #e8b562;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s;
}

.entry-action-btn:hover {
  background: #d4a04e;
  transform: scale(1.1);
}

/* Notification Toast */
.ark-notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #5f0c0b;
  color: white;
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 2000;
  font-size: 16px;
  transition: transform 0.3s ease;
  max-width: 90%;
  text-align: center;
}

.ark-notification.show {
  transform: translateX(-50%) translateY(0);
}

/* Modern Share Menu */
.share-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.share-menu-overlay.show {
  opacity: 1;
}

.share-menu {
  background: white;
  border-radius: 20px 20px 0 0;
  padding: 20px;
  width: 100%;
  max-width: 500px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.share-menu-overlay.show .share-menu {
  transform: translateY(0);
}

.share-menu h3 {
  margin: 0 0 15px 0;
  font-size: 18px;
  color: #333;
  text-align: center;
}

.share-option {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  padding: 15px;
  margin-bottom: 10px;
  background: #f5f5f5;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.share-option:hover {
  background: #e8b562;
  transform: scale(1.02);
}

.share-option.cancel {
  background: #ddd;
  color: #666;
  justify-content: center;
}

.share-option.cancel:hover {
  background: #ccc;
}

.share-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.share-label {
  font-weight: 600;
  font-size: 16px;
  color: #333;
  margin-bottom: 2px;
}

.share-desc {
  font-size: 13px;
  color: #666;
}

/* Share button for entries */
.entry-share-btn {
  background: var(--hands);
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.entry-share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Global share button (top right) */
.global-share-btn {
  position: fixed;
  top: 80px;
  right: 15px;
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  transition: all 0.3s;
  padding: 0;
}

.global-share-btn svg {
  width: 24px;
  height: 24px;
  stroke: var(--ark-navy);
  stroke-width: 2;
  fill: none;
}

.global-share-btn:hover svg {
  stroke: var(--hands);
  transform: scale(1.1);
}

.global-share-btn::before {
  content: attr(data-tooltip);
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  background: #333;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  margin-right: 10px;
}

.global-share-btn:hover::before {
  opacity: 1;
}

/* Adjust on mobile */
@media (max-width: 768px) {
  .global-share-btn {
    top: 70px;
    right: 10px;
  }
}

/* ==================== Bible Selector Styles ==================== */

.bible-selector-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.bible-selector-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.bible-selector-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 51, 72, 0.95);
    backdrop-filter: blur(8px);
}

.bible-selector-container {
    position: relative;
    width: 90%;
    max-width: 900px;
    height: 85vh;
    max-height: 850px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 24px;
    box-shadow: 
        0 20px 60px rgba(20, 51, 72, 0.3),
        0 0 0 1px rgba(20, 51, 72, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bible-selector-modal.active .bible-selector-container {
    transform: scale(1) translateY(0);
}

/* Header */
.bible-selector-header {
    padding: 32px;
    background: linear-gradient(135deg, #143348 0%, #1a4159 100%);
    border-bottom: 2px solid #e8b562;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bible-selector-title {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.02em;
}

.bible-icon {
    color: #e8b562;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.bible-selector-close {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bible-selector-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.bible-selector-close:active {
    transform: scale(0.95);
}

/* Version Bar */
.bible-version-bar {
    padding: 20px 32px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e6ea;
    display: flex;
    align-items: center;
    gap: 16px;
}

.bible-version-bar label {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #143348;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bible-version-dropdown {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.bible-version-select {
    width: 100%;
    padding: 12px 40px 12px 16px;
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #143348;
    background: #ffffff;
    border: 2px solid #d0d5dd;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
}

.bible-version-select:hover {
    border-color: #e8b562;
}

.bible-version-select:focus {
    outline: none;
    border-color: #e8b562;
    box-shadow: 0 0 0 3px rgba(232, 181, 98, 0.1);
}

.dropdown-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #143348;
    pointer-events: none;
}

/* Content Area */
.bible-selector-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Testament Tabs */
.testament-tabs {
    display: flex;
    gap: 0;
    padding: 24px 32px 0;
    background: #ffffff;
}

.testament-tab {
    flex: 1;
    padding: 16px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.tab-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #6b7280;
    transition: color 0.2s ease;
}

.tab-count {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    color: #9ca3af;
    transition: color 0.2s ease;
}

.testament-tab:hover .tab-label {
    color: #143348;
}

.testament-tab.active {
    border-bottom-color: #e8b562;
}

.testament-tab.active .tab-label {
    color: #143348;
}

.testament-tab.active .tab-count {
    color: #5f0c0b;
}

/* Book List */
.book-list-container {
    flex: 1;
    overflow-y: auto;
    padding: 24px 32px 32px;
    background: #ffffff;
}

.book-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.book-item {
    padding: 20px 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e0e6ea;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    text-align: left;
    animation: slideInUp 0.4s ease backwards;
}

.book-item:hover {
    background: linear-gradient(135deg, #143348 0%, #1a4159 100%);
    border-color: #e8b562;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 12px 32px rgba(20, 51, 72, 0.2),
        0 0 0 1px #e8b562;
}

.book-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: #143348;
    transition: color 0.2s ease;
}

.book-item:hover .book-name {
    color: #ffffff;
}

.book-chapters {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    color: #6b7280;
    transition: color 0.2s ease;
}

.book-item:hover .book-chapters {
    color: #e8b562;
}

/* Chapter Selector */
.chapter-selector {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.chapter-header {
    padding: 24px 32px;
    border-bottom: 1px solid #e0e6ea;
}

.back-to-books {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: #f8f9fa;
    border: 2px solid #d0d5dd;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #143348;
    cursor: pointer;
    transition: all 0.2s ease;
}

.back-to-books:hover {
    background: #143348;
    border-color: #e8b562;
    color: #ffffff;
}

.back-to-books svg {
    color: #5f0c0b;
    transition: color 0.2s ease;
}

.back-to-books:hover svg {
    color: #e8b562;
}

.chapter-grid {
    flex: 1;
    overflow-y: scroll !important;
    overflow-x: hidden;
    padding: 32px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 12px;
    align-content: start;
}

.chapter-grid::-webkit-scrollbar {
    width: 12px;
}

.chapter-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.chapter-grid::-webkit-scrollbar-thumb {
    background: #5f0c0b;
    border-radius: 10px;
    border: 2px solid #f1f1f1;
}

.chapter-grid::-webkit-scrollbar-thumb:hover {
    background: #e8b562;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.chapter-button {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #d0d5dd;
    border-radius: 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #143348;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: popIn 0.4s ease backwards;
}

.chapter-button:hover {
    background: linear-gradient(135deg, #5f0c0b 0%, #7a1412 100%);
    border-color: #e8b562;
    color: #ffffff;
    transform: scale(1.1) rotate(-2deg);
    box-shadow: 
        0 8px 24px rgba(95, 12, 11, 0.3),
        0 0 0 3px rgba(232, 181, 98, 0.2);
}

.chapter-button:active {
    transform: scale(0.95);
}

/* Footer */
.bible-selector-footer {
    padding: 20px 32px;
    background: #f8f9fa;
    border-top: 1px solid #e0e6ea;
}

.copyright-notice {
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    color: #6b7280;
    text-align: center;
    line-height: 1.6;
}

/* Scrollbar Styling */
.book-list-container::-webkit-scrollbar,
.book-list-container::-webkit-scrollbar-track {
    background: #f8f9fa;
}

.book-list-container::-webkit-scrollbar-thumb {
    background: #d0d5dd;
    border-radius: 6px;
    border: 3px solid #f8f9fa;
}

.book-list-container::-webkit-scrollbar-thumb:hover {
    background: #e8b562;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .bible-selector-container {
        width: 95%;
        max-height: 90vh;
        border-radius: 20px;
    }

    .bible-selector-header {
        padding: 24px 20px;
    }

    .bible-selector-title {
        font-size: 22px;
        gap: 12px;
    }

    .bible-version-bar {
        padding: 16px 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .bible-version-dropdown {
        max-width: none;
    }

    .testament-tabs {
        padding: 20px 20px 0;
    }

    .tab-label {
        font-size: 14px;
    }

    .tab-count {
        font-size: 11px;
    }

    .book-list-container {
        padding: 20px;
    }

    .book-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .book-item {
        padding: 16px 20px;
    }

    .chapter-header {
        padding: 20px;
    }

    .chapter-grid {
        padding: 20px;
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 10px;
    }

    .chapter-button {
        font-size: 18px;
        border-radius: 12px;
    }
}

/* Bible Selector Button (for journal form) */
.bible-selector-button {
    width: 100%;
    padding: 16px 20px;
    background: linear-gradient(135deg, #143348 0%, #1a4159 100%);
    border: 2px solid #e8b562;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bible-selector-button svg {
    color: #e8b562;
    flex-shrink: 0;
}

.bible-selector-button .chevron {
    margin-left: auto;
    color: #ffffff;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.bible-selector-button span {
    flex: 1;
    text-align: left;
}

.bible-selector-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(20, 51, 72, 0.3);
    border-color: #e8b562;
}

.bible-selector-button:hover .chevron {
    opacity: 1;
    transform: translateY(2px);
}

.bible-selector-button:active {
    transform: translateY(0);
}

/* Verse Selector Styles */
.verse-selector {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    overflow: hidden;
}

.verse-header {
    padding: 24px 32px;
    border-bottom: 1px solid #e0e6ea;
    flex-shrink: 0;
}

.verse-options {
    padding: 32px;
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

.verse-option-btn {
    flex: 1;
    padding: 20px;
    background: #f8f9fa;
    border: 2px solid #d0d5dd;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #143348;
    cursor: pointer;
    transition: all 0.3s ease;
}

.verse-option-btn svg {
    color: #5f0c0b;
    transition: color 0.3s ease;
}

.verse-option-btn:hover {
    background: #ffffff;
    border-color: #e8b562;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20, 51, 72, 0.1);
}

.verse-option-btn.active {
    background: linear-gradient(135deg, #143348 0%, #1a4159 100%);
    border-color: #e8b562;
    color: #ffffff;
}

.verse-option-btn.active svg {
    color: #e8b562;
}

.verse-range-selector {
    padding: 0 32px 24px 32px;
    flex: 1;
    overflow-y: auto;
}

.verse-range-inputs {
    display: flex;
    gap: 20px;
}

.verse-input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.verse-input-group label {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #143348;
}

.verse-input {
    padding: 12px 16px;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    color: #143348;
    background: #ffffff;
    border: 2px solid #d0d5dd;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.verse-input:focus {
    outline: none;
    border-color: #e8b562;
    box-shadow: 0 0 0 3px rgba(232, 181, 98, 0.1);
}

.load-passage-btn {
    margin: 0;
    padding: 16px 24px;
    background: linear-gradient(135deg, #5f0c0b 0%, #7a1412 100%);
    border: 2px solid #e8b562;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 100%;
}

.verse-button-wrapper {
    padding: 20px 32px;
    background: #ffffff;
    border-top: 2px solid #e0e6ea;
    flex-shrink: 0;
    margin-top: auto;
}

.load-passage-btn svg {
    color: #e8b562;
}

.load-passage-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(95, 12, 11, 0.3);
}

.load-passage-btn:active {
    transform: translateY(0);
}

.load-passage-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Mobile Responsive for Verse Selector */
@media (max-width: 768px) {
    .bible-selector-container {
        width: 95%;
        height: 90vh;
        max-height: 700px;
    }

    .verse-options {
        padding: 20px;
        flex-direction: column;
    }

    .verse-option-btn {
        padding: 16px;
    }

    .verse-range-selector {
        padding: 0 20px 20px 20px;
    }

    .verse-range-inputs {
        flex-direction: column;
        gap: 16px;
    }

    .verse-button-wrapper {
        padding: 16px 20px;
    }
}
