/* Custom styling for citaten-select dropdown */
.citaten-select {
  background-color: #4a6fa5 !important;
  border: none !important;
  box-shadow: none !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  padding: 8px 36px 8px 16px !important;
  border-radius: 50px !important;
  min-width: 120px !important;
  appearance: none !important;
  outline: none !important;
  color: white !important;
  transition: background-color 0.2s ease !important;
  margin-right: 0.2rem !important;
  position: relative !important;
  height: 100% !important;
  line-height: 1.2 !important;
  display: flex !important;
  align-items: center !important;
  font-family: 'Baloo 2', sans-serif !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 14px !important;
}

.citaten-select:focus, 
.citaten-select:hover {
  background-color: #166088 !important;
  border: none !important;
}

.citaten-select::-ms-expand {
  display: none !important;
}

.citaten-select option {
  background-color: #4a6fa5 !important;
  color: white !important;
  padding: 8px !important;
  font-family: 'Baloo 2', sans-serif !important;
}

/* This ensures the dropdown options match in all browsers */
.citaten-select option:hover,
.citaten-select option:focus,
.citaten-select option:checked {
  background-color: #166088 !important;
  color: white !important;
}

/* DARK MODE - COMPLETELY PURPLE WITH WHITE TEXT */
body.dark-mode .citaten-select {
  background-color: #6366F1 !important;
  color: white !important;
  border: none !important;
  padding: 8px 36px 8px 16px !important;
  border-radius: 50px !important;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
}

body.dark-mode .citaten-select:hover, 
body.dark-mode .citaten-select:focus {
  background-color: #6366F1 !important;
}

body.dark-mode .citaten-select option {
  background-color: #6366F1 !important;
  color: white !important;
}

body.dark-mode .citaten-select option:hover,
body.dark-mode .citaten-select option:focus,
body.dark-mode .citaten-select option:checked {
  background-color: #6366F1 !important;
  color: white !important;
}

/* PURPLE BORDER FOR SEARCH CONTAINER ON CITATEN PAGE */
body.dark-mode .citaten-search-form {
  border-radius: 8px !important;
  padding: 10px !important;
}

body.dark-mode .search-container {
  background-color: var(--bg-color) !important;
  padding: 5px !important;
  border-radius: 50px !important;
  border: 2px solid #6366F1 !important;
}

/* BLUE MODE STYLING */
body.blue-mode .citaten-select {
  color: white !important;
  border: none !important;
  padding: 8px 36px 8px 16px !important;
  border-radius: 50px !important;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background: #0F5970 !important;
}

body.blue-mode .citaten-select:hover, 
body.blue-mode .citaten-select:focus {
  background-color: #0F5970 !important;
}

body.blue-mode .citaten-select option {
  background-color: #0F5970 !important;
  color: white !important;
}

body.blue-mode .citaten-select option:hover,
body.blue-mode .citaten-select option:focus,
body.blue-mode .citaten-select option:checked {
  background-color: #0F5970!important;
  color: white !important;
}

body.blue-mode .citaten-search-form {
  border-radius: 8px !important;
  padding: 10px !important;
}

body.blue-mode .search-container {
  padding: 5px !important;
  border-radius: 50px !important;
  border: 2px solid #1784A5 !important;
}

/* GREEN MODE STYLING */
body.green-mode .citaten-select {
  color: white !important;
  border: none !important;
  padding: 8px 36px 8px 16px !important;
  border-radius: 50px !important;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background: #2C6E49 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

body.green-mode .citaten-select:hover, 
body.green-mode .citaten-select:focus {
  background-color: #1E5032 !important;
}

body.green-mode .citaten-select option {
  background-color: #2C6E49 !important;
  color: white !important;
}

body.green-mode .citaten-select option:hover,
body.green-mode .citaten-select option:focus,
body.green-mode .citaten-select option:checked {
  background-color: #2C6E49 !important;
  color: white !important;
}

body.green-mode .citaten-search-form {
  border-radius: 50px !important;
  padding: 10px !important;
}

body.green-mode .search-container {
  padding: 5px !important;
  border-radius: 50px !important;
  border: 2px solid #2C6E49 !important;
}

/* PROVERB CARDS WITH LIGHT GREEN BACKGROUND IN GREEN MODE */
body.green-mode .proverb-card,
.green-mode .proverb-card {
  background-color: #e9f7ea !important;
  border: 1px solid #C1E4C2 !important;
  box-shadow: 0 4px 6px rgba(44, 110, 73, 0.1) !important;
  transition: all 0.3s ease !important;
}

body.green-mode .proverb-card:hover,
.green-mode .proverb-card:hover {
  background-color: #e9f7ea !important;
  transform: translateY(-5px) !important;
  box-shadow: 0 6px 12px rgba(44, 110, 73, 0.15) !important;
}

/* DOWNLOAD AND EDIT BUTTON ICONS IN DARK MODE */
body.dark-mode .download-button i.fas.fa-download,
body.dark-mode .edit-button i.fas.fa-pen {
  color: #6366F1 !important;
  transition: color 0.2s ease !important;
}

body.dark-mode .download-button:hover i.fas.fa-download,
body.dark-mode .download-button:focus i.fas.fa-download,
body.dark-mode .edit-button:hover i.fas.fa-pen,
body.dark-mode .edit-button:focus i.fas.fa-pen {
  color: #582fd3 !important;
}

/* LIGHT GREEN BACKGROUND FOR SETTINGS CARDS IN GREEN MODE */
body.green-mode .settings-section,
.green-mode .settings-section {
  background-color: #e9f7ea !important;
  border: 1px solid #C1E4C2 !important;
  box-shadow: 0 4px 8px rgba(44, 110, 73, 0.08) !important;
}

body.green-mode .settings-section:hover,
.green-mode .settings-section:hover {
  box-shadow: 0 6px 12px rgba(44, 110, 73, 0.12) !important;
}

/* Give settings form elements the proper treatment */
body.green-mode .settings-section input,
.green-mode .settings-section input {
  background-color: #ffffff !important;
  border: 1px solid #C1E4C2 !important;
}

/* Header Layout */
.header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--card-bg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header .container {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  gap: 20px;
}

/* Logo Styles */
.logo-container {
  display: flex;
  align-items: center;
  margin-right: auto;
}

.header .logo {
  display: flex;
  align-items: center;
}

.header .logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header .logo img {
  height: 40px;
  width: auto;
  margin-right: 15px;
}

.header .logo .app-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-color);
  white-space: nowrap;
  font-family: 'Baloo 2', cursive;
  letter-spacing: 0.5px;
}

/* Hamburger Menu */
.menu-trigger {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  position: relative;
  z-index: 101;
  order: 2;
}

.menu-bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-color);
  margin: 4px 0;
  transition: all 0.3s ease;
}

/* Theme Switcher */
.theme-switcher {
  position: relative;
  order: 3;
  margin: 0;
}

.theme-button {
  width: 36px;
  height: 36px;
  padding: 6px;
}

/* Mobile Styles (642px and below) */
@media (max-width: 642px) {
  .header .container {
    padding: 8px 15px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .logo-container {
    flex: 0 1 100%;
    margin-bottom: 8px;
  }

  .menu-trigger {
    display: block;
    padding: 6px;
    order: 2;
    margin-left: 0;
  }

  .theme-switcher {
    order: 3;
    margin:-8px 0px 15px -74px;
  }

  /* Controls container for menu and theme */
  .header .container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  /* Row for controls */
  .controls-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 0;
    padding-left: 10px;
  }

  .header .logo img {
    height: 32px;
    margin-right: 10px;
  }

  .header .logo .app-title {
    font-size: 18px;
  }

  .menu-bar {
    width: 22px;
    height: 2px;
    margin: 4px 0;
  }

  .theme-button {
    width: 32px;
    height: 32px;
    padding: 4px;
  }

  .theme-button i {
    font-size: 16px;
  }

  /* Rest of the mobile styles remain the same */
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--card-bg);
    padding: 70px 20px 20px;
    transition: right 0.3s ease;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
  }

  .main-nav.active {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    width: 100%;
    gap: 15px;
  }

  .main-nav li {
    margin: 0;
    width: 100%;
  }

  .main-nav a {
    display: flex;
    align-items: center;
    padding: 12px;
    width: 100%;
    font-size: 16px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
  }

  .main-nav a i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
  }

  .main-nav a:hover {
    background-color: rgba(0, 0, 0, 0.05);
  }

  /* Menu animation */
  .menu-trigger.active .menu-bar.top {
    transform: rotate(45deg) translate(4px, 4px);
  }

  .menu-trigger.active .menu-bar.middle {
    opacity: 0;
  }

  .menu-trigger.active .menu-bar.bottom {
    transform: rotate(-45deg) translate(4px, -4px);
  }
}

/* Even smaller screens */
@media (max-width: 360px) {
  .header .container {
    padding: 8px 10px;
    gap: 8px;
  }

  .header .logo img {
    height: 28px;
    margin-right: 8px;
  }

  .header .logo .app-title {
    font-size: 16px;
  }

  .theme-button {
    width: 30px;
    height: 30px;
  }
}

/* Menu Active States */
.menu-trigger.active .menu-bar.top {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-trigger.active .menu-bar.middle {
  opacity: 0;
}

.menu-trigger.active .menu-bar.bottom {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Theme-specific styles */
body.dark-mode .menu-bar {
  background-color: var(--header-color);
}

body.blue-mode .menu-bar {
  background-color: #fff;
}

body.green-mode .menu-bar {
  background-color: white;
}

/* Mobile navigation */
li.mobile-app-title {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

li.mobile-app-title img {
  margin-right: 10px;
}

li.mobile-app-title span {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
  font-family: 'Baloo 2', cursive;
  letter-spacing: 0.5px;
}

body.dark-mode li.mobile-app-title span {
  color: var(--header-color);
}

body.blue-mode li.mobile-app-title span {
  color: #1784A5;
}

body.green-mode li.mobile-app-title span {
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Settings Cards Border Styles */
.settings-section {
    border: 2px solid #4a90e2 !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}

/* Maintain existing theme-specific styles while adding borders */
body.dark-mode .settings-section {
    border: 2px solid #6366F1 !important;
}

body.blue-mode .settings-section {
    border: 2px solid #1784A5 !important;
}

/* Keep the existing green mode border but update its width to 2px */
body.green-mode .settings-section,
.green-mode .settings-section {
    border: 2px solid #2C6E49 !important;
}

/* Add pink mode border style */
body.pink-mode .settings-section,
.pink-mode .settings-section {
    border: 2px solid #D88C8C !important; /* Dusty Rose from pink mode theme */
}

/* Category Cards Grid Layout */
.category-grid {
    display: grid;
    grid-template-columns: repeat(13, 1fr);
    gap: 10px;
    margin: 20px 0;
    width: 100%;
}

.category-card {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.category-card.active {
    background-color: var(--primary-color, #4a90e2);
    color: white;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .category-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}





