@import url('colors.css');

:root {
  --panel-radius: 0rem;
  --panel-shadow: var(--shadow);
  --tijdkleur-light: var(--text-primary-light);
  --tijdkleur-dark: var(--text-primary-dark);
  --icoon-light: var(--text-primary-light);
  --icoon-dark: var(--text-primary-dark);
}

html.light {
  --bg: var(--bg-light);
  --text: var(--text-primary-light);
  --weather-temp: var(--text-primary-light);
  --panel-bg: var(--panel-bg-light);
  --panel-text: var(--text-primary-light);
  --accent: var(--accent-blue);
  --accent-blue: #f0f0f0;
  --panel-border: var(--border-light);
  --list-bg: var(--bg-light);
  --list-border: var(--border-light);
  --active-bg: var(--active-bg-light);
  --tijdkleur: var(--tijdkleur-light);
  --icoon-kleur: var(--icoon-light);
  --card-bg: var(--white);
  --border-color: var(--border-light);
  --primary-color: var(--accent-black);
  --text-color: var(--text-primary-light);
  --text-secondary: var(--text-secondary-light);
}

html.dark, body.dark {
  --bg: var(--bg-dark);
  --text: var(--text-primary-dark);
  --panel-bg: var(--panel-bg-dark);
  --panel-text: var(--text-primary-dark);
  --accent: var(--white);
  --accent-blue: var(--text-primary-light);
  --panel-border: var(--text-primary-light);
  --list-bg: var(--white-10);
  --list-border: var(--text-primary-light);
  --active-bg: var(--active-bg-dark);
  --tijdkleur: var(--tijdkleur-dark);
  --icoon-kleur: var(--icoon-dark);
  --card-bg: var(--white-10);
  --border-color: var(--border-dark);
  --primary-color: var(--white);
  --text-color: var(--text-primary-dark);
  --text-secondary: var(--text-secondary-dark);
}

body, html {
  font-family: 'Lato', Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
}

body {
  margin: 0;
  padding: 0;
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* Specifieke styling voor settings pagina */
body.settings-page {
  overflow-y: auto;
  height: auto;
  min-height: 100vh;
}

.app {
  display: flex;
  width: 100%;
  height: 100%;
}

.left {
  flex: 1;
  background: url('/static/moskee.png') center/cover no-repeat;
  position: relative;
  display: flex;
  flex-direction: column;
}

.overlay {
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 2rem;
  position: relative;
}

.tijdstip {
  margin-bottom: 2rem;
  flex: 0 0 auto;
}

.tijdstip #current-time {
  font-family: 'Cairo', Arial, sans-serif;
  font-size: 6rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  color: #fff;
  text-shadow: 2px 2px 8px #000;
}

.tijdstip .datum {
  font-size: 1.5rem;
  color: #e0e6ed;
}

.datum-sectie {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gregorian-datum {
  font-size: 1.4rem;
  color: #e0e6ed;
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 400;
}

.hijri-datum-arabic {
  font-size: 1.3rem;
  color: var(--accent);
  font-family: 'Cairo', Arial, sans-serif;
  font-weight: 600;
  direction: rtl;
  text-align: left;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hijri-datum-dutch {
  font-size: 1.1rem;
  color: #c0c6d0;
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 300;
  font-style: italic;
}

/* Hadith sectie in linker overlay */
.hadith-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
  padding: 0 1rem;
}

.hadith-section blockquote {
  font-style: italic;
  font-size: 1.8rem;
  background: none;
  border: none;
  margin: 0;
  padding: 0;
  color: #fff;
  text-align: center;
  font-family: 'Cairo', Arial, sans-serif;
  line-height: 1.4;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hadith-section blockquote footer {
  font-size: 1.1rem;
  color: var(--accent);
  margin-top: 1rem;
  text-align: center;
  font-family: 'Lato', Arial, sans-serif;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

/* Oude huidig-gebed CSS verwijderd - nu huidig-gebed-bottom gebruikt */

.right {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: var(--panel-bg);
  color: var(--panel-text);
  border-radius: var(--panel-radius) 0 0 var(--panel-radius);
  box-shadow: var(--panel-shadow);
  min-width: 350px;
  /* max-width: 600px; */
  border: 1px solid var(--panel-border);
  position: relative;
}

#hadith-dua-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

blockquote {
  font-style: italic;
  font-size: 2.4rem;
  background: none;
  border: none;
  margin: 2rem 0 0.5rem 0;
  padding: 0;
  color: var(--panel-text);
  text-align: center;
  font-family: 'Cairo', Arial, sans-serif;
  line-height: 1.3;
}

blockquote footer {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-top: 1rem;
  text-align: right;
  font-family: 'Lato', Arial, sans-serif;
}

.gebedstijden {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  border-radius: 1rem;
  background: var(--list-bg);
  box-shadow: 0 2px 8px 0 rgba(31, 64, 104, 0.10);
}

.gebedstijden li {
  display: flex;
  justify-content: space-between;
  padding: 0.7rem 1.2rem;
  border-bottom: 1px solid var(--list-border);
  font-size: 1.3rem;
  font-family: 'Lato', Arial, sans-serif;
}

.gebedstijden li.active {
  font-weight: bold;
  color: var(--primary-color);
  background: var(--active-bg);
  border-left: 4px solid var(--primary-color);
}

.icoontjes {
  display: flex;
  gap: 1.5rem;
  font-size: 1.7rem;
  margin-top: auto;
  opacity: 0.8;
}

#themeToggle {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  font-size: 1.5rem;
  border: none;
  cursor: pointer;
  z-index: 99;
  color: var(--accent);
  text-shadow: 1px 1px 4px #000;
}

.switch-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.switch-buttons button {
  background: var(--accent-blue);
  color: var(--text);
  border: none;
  padding: 0.7rem 2rem;
  border-radius: 1.2rem 1.2rem 0 0;
  font-size: 1.1rem;
  font-family: 'Cairo', Arial, sans-serif;
  cursor: pointer;
  opacity: 0.8;
  transition: background 0.2s, opacity 0.2s, color 0.2s;
  box-shadow: 0 2px 8px 0 rgba(31, 64, 104, 0.10);
}

.switch-buttons button.active {
  background: var(--accent);
  color: var(--bg);
  opacity: 1;
}

@media (max-width: 900px) {
  .app {
    flex-direction: column;
  }
  .right {
    border-radius: var(--panel-radius) var(--panel-radius) 0 0;
    min-width: unset;
    max-width: unset;
    width: 100%;
    padding: 1.2rem;
  }
  .right.compact-sidebar {
    min-width: unset;
    max-width: unset;
    flex: unset;
    padding: 1.2rem;
  }
  .compact-sidebar .vertical-tijden {
    flex-direction: row;
    justify-content: center;
    height: auto;
  }
  .compact-sidebar .tijden-en-icoontjes {
    flex-direction: row;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .compact-sidebar .weather-section {
    margin-top: 1rem;
    padding: 1rem;
  }
  .compact-sidebar .weather-main {
    flex-direction: row;
    justify-content: space-between;
  }
  .compact-sidebar .weather-details {
    flex-direction: row;
    gap: 1rem;
  }
  .hadith-tijden-row {
    flex-direction: column;
  }
  .hadith-center {
    margin: 0.5rem;
    padding: 1.5rem;
  }
  .hadith-center blockquote {
    font-size: 4.8rem;
  }
  .vertical-tijden {
    flex-direction: row;
    min-width: unset;
    padding: 1.2rem 0 0 0;
    width: 100%;
    justify-content: center;
  }
  .tijden-en-icoontjes {
    flex-direction: row;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  /* Tijd-weer layout voor tablets */
  .tijd-weer-row {
    gap: 2rem;
  }
  
  .weather-section-left {
    max-width: 250px;
  }
  
  .left {
    min-height: 40vh;
  }
  
  .overlay {
    min-height: 40vh;
  }
  
  /* Tijd-weer layout responsive */
  .tijd-weer-row {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .weer-column {
    margin-top: 0;
    width: 100%;
  }
  
  /* Weer sectie links responsive */
  .weather-section-left {
    padding: 1rem;
    max-width: none;
  }
  
  .weather-section-left .weather-temp {
    font-size: 1.5rem;
  }
  
  .weather-section-left .weather-desc {
    font-size: 0.9rem;
  }
  
  .weather-section-left .weather-details {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .weather-section-left .weather-detail {
    font-size: 0.8rem;
    text-align: left;
  }
  
  /* Huidig gebed bottom responsive */
  .huidig-gebed-bottom {
    padding: 1.5rem;
  }
  
  .huidig-gebed-bottom .naam {
    font-size: 2rem;
  }
  
  .huidig-gebed-bottom #countdown {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .tijd-weer-row {
    gap: 1.5rem;
  }
  
  .weather-section-left {
    max-width: 220px;
  }
  
  .weather-section-left .weather-temp {
    font-size: 1.8rem;
  }
}

@media (max-width: 600px) {
  .tijdstip #current-time, #countdown {
    font-size: 2.2rem;
  }
  .huidig-gebed-bottom .naam {
    font-size: 1.2rem;
  }
  .right {
    padding: 0.7rem;
  }
  .hadith-section blockquote {
    font-size: 1.2rem;
  }
  .hadith-section blockquote footer {
    font-size: 0.9rem;
  }
  
  .gregorian-datum {
    font-size: 1.1rem;
  }
  
  .hijri-datum-arabic {
    font-size: 1rem;
  }
  
  .hijri-datum-dutch {
    font-size: 0.9rem;
  }
  
  /* Tijd-weer layout responsive */
  .tijd-weer-row {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .weer-column {
    margin-top: 0;
    width: 100%;
  }
  
  /* Weer sectie links responsive */
  .weather-section-left {
    padding: 1rem;
    max-width: none;
  }
  
  .weather-section-left .weather-temp {
    font-size: 1.5rem;
  }
  
  .weather-section-left .weather-desc {
    font-size: 0.9rem;
  }
  
  .weather-section-left .weather-details {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .weather-section-left .weather-detail {
    font-size: 0.8rem;
    text-align: left;
  }
  
  /* Huidig gebed bottom responsive */
  .huidig-gebed-bottom {
    padding: 1.5rem;
  }
  
  .huidig-gebed-bottom .naam {
    font-size: 2rem;
  }
  
  .huidig-gebed-bottom #countdown {
    font-size: 3rem;
  }
}

.right.new-layout {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  background: var(--panel-bg);
  color: var(--panel-text);
  border-radius: var(--panel-radius) 0 0 var(--panel-radius);
  box-shadow: var(--panel-shadow);
  min-width: 350px;
  /* max-width: 600px; */
  border: 1px solid var(--panel-border);
  position: relative;
  padding: 0;
}

/* Compact sidebar voor index.html */
.right.new-layout.compact-sidebar {
  min-width: 120px;
  max-width: 120px;
  flex: 0 0 120px;
  justify-content: space-between;
  padding: 2rem 0;
}

.compact-sidebar .vertical-tijden {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto;
  flex: 1;
}

.hadith-tijden-row {
  display: flex;
  flex-direction: row;
  height: 100%;
  width: 100%;
}

.hadith-center {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2.5rem 2rem 2.5rem 2.5rem;
  background: var(--card-bg);
  border-radius: 8px;
  margin: 1rem;
  border: 1px solid var(--border-color);
}

.hadith-center blockquote {
  font-size: 4.2rem;
  text-align: left;
  color: var(--text-color);
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  font-family: 'Cairo', Arial, sans-serif;
  line-height: 1.3;
}

.hadith-center blockquote footer {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-top: 1.2rem;
  text-align: left;
  font-family: 'Lato', Arial, sans-serif;
}

.vertical-tijden {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  background: none;
  /* padding: 2.5rem 1.2rem 2.5rem 0; */
  height: 100%;
}

.gebedstijden-verticaal {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem 0;
  width: 100%;
}

.gebedstijden-verticaal li {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0.3rem 0;
  font-size: 1.1rem;
  color: #bbb;
  font-family: 'Lato', Arial, sans-serif;
  transition: color 0.2s, font-weight 0.2s;
}

.gebedstijden-verticaal li.active {
  color: var(--accent);
  font-weight: bold;
  font-size: 1.2rem;
}

.gebedstijden-verticaal .naam {
  font-size: 0.95em;
  letter-spacing: 0.05em;
}

.gebedstijden-verticaal .tijd {
  font-size: 0.95em;
  opacity: 0.8;
}

.vertical-icoontjes {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  margin-top: 1.5rem;
  font-size: 1.6rem;
  opacity: 0.8;
}

.tijden-en-icoontjes {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.7rem;
}

.tijden-en-icoontjes li {
  font-size: 1.25rem;
  color: #fff;
  opacity: 0.85;
  font-family: 'Lato', Arial, sans-serif;
  letter-spacing: 0.04em;
  transition: color 0.2s, opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tijden-en-icoontjes .tijd {
  font-size: 1.25rem;
  font-family: 'Lato', Arial, sans-serif;
  color: #fff;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  opacity: 0.85;
}

.tijden-en-icoontjes .icoon-link {
  font-size: 1.35rem;
  color: #fff;
  text-decoration: none;
  background: none;
  border: none;
  opacity: 0.85;
  transition: color 0.2s, opacity 0.2s;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tijden-en-icoontjes .icoon-link:hover {
  color: var(--accent);
  opacity: 1;
}

.tijden-rij {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: auto;
  gap: 0.1rem;
}

.tijden-rij .naam {
  font-size: 1.05rem;
  color: var(--tijdkleur) !important;
  font-family: 'Lato', Arial, sans-serif;
  opacity: 0.85;
  letter-spacing: 0.04em;
  text-align: center;
  margin-bottom: 0.1rem;
}

.tijden-rij .tijd {
  font-size: 1.15rem;
  color: var(--tijdkleur) !important;
  font-family: 'Lato', Arial, sans-serif;
  opacity: 0.85;
  text-align: center;
}

.icoon-link .material-icons {
  font-size: 1.7rem;
  color: var(--icoon-kleur) !important;
  vertical-align: middle;
  display: inline-block;
  line-height: 1;
  transition: color 0.2s, opacity 0.2s;
}

.icoon-link:hover .material-icons {
  color: #1e7d4d;
}

#themeToggle .material-icons {
  color: var(--icoon-kleur) !important;
  transition: color 0.2s;
}

/* Weer sectie styling */
.weather-section {
  margin-top: auto;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 0;
  font-family: 'Cairo', Arial, sans-serif;
}

/* Weer sectie in compact sidebar */
.compact-sidebar .weather-section {
  margin-top: 0;
  padding: 1rem 0.5rem;
  text-align: center;
}

.compact-sidebar .weather-main {
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.compact-sidebar .weather-temp {
  font-size: 1.5rem;
}

.compact-sidebar .weather-desc {
  font-size: 0.8rem;
}

.compact-sidebar .weather-details {
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}

.compact-sidebar .weather-detail {
  font-size: 0.7rem;
}

.weather-info {
  text-align: left;
}

.weather-main {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.weather-temp {
  font-size: 2rem;
  font-weight: 700;
  color: var(--tijdkleur);
  font-family: 'Cairo', sans-serif;
  opacity: 0.9;
}

.weather-desc {
  font-size: 1rem;
  color: var(--tijdkleur);
  opacity: 0.7;
  font-family: 'Lato', sans-serif;
  text-transform: capitalize;
}

.weather-details {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.8rem;
  border-top: 1px solid var(--border-color);
  padding-top: 0.8rem;
}

.weather-detail {
  font-size: 0.9rem;
  color: var(--tijdkleur);
  opacity: 0.7;
  flex: 1;
  text-align: center;
  font-family: 'Lato', sans-serif;
}

/* Responsive aanpassingen voor weer */
@media (max-width: 768px) {
  .weather-section {
    margin-top: 1rem;
    padding: 1rem;
  }
  
  .weather-temp {
    font-size: 1.8rem;
  }
  
  .weather-details {
    flex-direction: row;
    gap: 0.5rem;
  }
}

/* Instellingen pagina styling */
.settings-container {
  width: 100%;
  margin: 0;
  padding: 2rem;
  background: var(--panel-bg);
  border-radius: 0;
  border: none;
  box-shadow: none;
  min-height: 100vh;
  max-height: none;
  overflow-y: auto;
}

.settings-header {
  margin-bottom: 1.5rem;
}

.settings-header h1 {
  font-family: 'Cairo', sans-serif;
  font-size: 2rem;
  color: var(--primary-color);
  text-align: center;
  margin: 0.5rem 0;
  font-weight: 700;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

.back-link:hover {
  color: var(--accent);
  transform: translateX(-5px);
}

.back-link .material-icons {
  font-size: 1.2rem;
}

.settings-form {
  width: 100%;
}

.settings-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.form-row.three-columns {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.form-row .form-group {
  margin-bottom: 0;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  color: var(--primary-color);
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.form-group label .material-icons {
  font-size: 1.3rem;
  color: var(--accent);
}

.form-group input[type="number"],
.form-group input[type="time"],
.form-group select {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--card-bg);
  color: var(--text-color);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-group input[type="number"]:focus,
.form-group input[type="time"]:focus,
.form-group select:focus {
  outline: none;
  border-color: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.audio-section {
  background: var(--list-bg);
  padding: 1.2rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  height: fit-content;
}

.audio-preview-section {
  background: var(--list-bg);
  padding: 1.2rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  height: fit-content;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.audio-row {
  align-items: stretch;
  margin-bottom: 1.5rem;
}

.audio-preview {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.6rem;
}

.preview-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: var(--accent);
  color: var(--accent-blue);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.preview-btn:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.preview-btn .material-icons {
  font-size: 1.1rem;
}

.checkboxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem;
  background: var(--card-bg);
  border-radius: 6px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  cursor: pointer;
  min-height: 40px;
}

.checkbox-item:hover {
  background: var(--active-bg);
  border-color: var(--accent);
}

.checkbox-item input[type="checkbox"] {
  width: auto;
  margin: 0;
  cursor: pointer;
  accent-color: var(--accent);
}

.checkbox-item label {
  margin: 0;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-color);
}

.button-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: none;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-blue);
}

.btn-primary:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
  background: var(--card-bg);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--active-bg);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.btn-primary .material-icons,
.btn-secondary .material-icons {
  font-size: 1.1rem;
}

/* Responsive design voor instellingen */
@media (max-width: 768px) {
  .settings-container {
    padding: 1.5rem;
    min-height: 100vh;
    max-height: none;
    overflow-y: auto;
  }

  .settings-header h1 {
    font-size: 1.8rem;
  }

  .settings-section {
    gap: 1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .audio-row {
    margin-bottom: 1rem;
  }

  .audio-section,
  .audio-preview-section {
    padding: 1rem;
  }

  .checkboxes {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .button-group {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1rem;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

html.light .hadith-center {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

html.dark .hadith-center {
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

/* Weer sectie in linker overlay */
.weather-section-left {
  margin-top: 0;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-family: 'Cairo', Arial, sans-serif;
  backdrop-filter: blur(10px);
  width: 100%;
  max-width: 300px;
}

.weather-section-left .weather-info {
  text-align: left;
}

.weather-section-left .weather-main {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.weather-section-left .weather-temp {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  font-family: 'Cairo', sans-serif;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.weather-section-left .weather-desc {
  font-size: 1rem;
  color: #fff;
  opacity: 0.9;
  font-family: 'Lato', sans-serif;
  text-transform: capitalize;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.weather-section-left .weather-details {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 0.8rem;
}

.weather-section-left .weather-detail {
  font-size: 0.9rem;
  color: #fff;
  opacity: 0.8;
  flex: 1;
  text-align: center;
  font-family: 'Lato', sans-serif;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.tijd-weer-row {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
  margin-bottom: 1rem;
}

.tijd-column {
  flex: 0 0 auto;
}

.weer-column {
  flex: 1;
  display: flex;
  align-items: flex-start;
  margin-top: 1rem;
}

/* Huidig gebed sectie onderaan het scherm */
.huidig-gebed-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 10;
}

.huidig-gebed-bottom .naam {
  font-family: 'Cairo', Arial, sans-serif;
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
  text-shadow: 2px 2px 8px #000;
}

.huidig-gebed-bottom #countdown {
  font-size: 6rem;
  font-weight: bold;
  margin-top: 0.5rem;
  color: #fff;
  text-shadow: 2px 2px 8px #000;
}

/* Tab Navigation Styling */
.tab-navigation {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border-color);
  overflow-x: auto;
  padding-bottom: 0;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  min-width: fit-content;
}

.tab-btn:hover {
  color: var(--primary-color);
  background: var(--active-bg);
}

.tab-btn.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  background: var(--active-bg);
}

.tab-btn .material-icons {
  font-size: 1.2rem;
}

/* Tab Content Styling */
.tab-content {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

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

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

/* Save Section Styling */
.save-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border-color);
  display: flex;
  justify-content: center;
}

.btn-save {
  min-width: 200px;
  font-size: 1.1rem;
  padding: 1rem 2rem;
}

/* Responsive Tab Navigation */
@media (max-width: 768px) {
  .tab-navigation {
    gap: 0.2rem;
    margin-bottom: 1.5rem;
  }
  
  .tab-btn {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    flex-direction: column;
    gap: 0.3rem;
    text-align: center;
  }
  
  .tab-btn .material-icons {
    font-size: 1.1rem;
  }
  
  .save-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
  }
  
  .btn-save {
    width: 100%;
    max-width: 300px;
  }
}

/* Adzkaar Modal Styles */
.adzkaar-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.adzkaar-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: var(--primary-gradient);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  box-sizing: border-box;
  overflow-y: auto;
}

.adzkaar-header {
  text-align: center;
  margin-bottom: 3rem;
}

.adzkaar-title {
  font-family: 'Cairo', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: var(--text-shadow);
}

.adzkaar-subtitle {
  font-family: 'Lato', sans-serif;
  font-size: 1.5rem;
  opacity: 0.9;
  font-weight: 300;
}

.adzkaar-content {
  max-width: 900px;
  width: 100%;
  text-align: center;
}

.dhikr-container {
  position: relative;
  min-height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dhikr-item {
  display: none;
  background: var(--white-10);
  border-radius: 15px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  border: 1px solid var(--white-20);
  transition: all 0.3s ease;
  max-width: 800px;
  width: 100%;
  text-align: center;
}

.dhikr-item.active {
  display: block;
  background: var(--white-15);
  border: 1px solid var(--white-30);
  transform: scale(1.02);
}

.dhikr-arabic {
  font-family: 'Cairo', sans-serif;
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  direction: rtl;
  line-height: 1.6;
  color: var(--white);
}

.dhikr-transliteration {
  font-family: 'Lato', sans-serif;
  font-size: 1.3rem;
  font-style: italic;
  margin-bottom: 1rem;
  opacity: 0.8;
  color: var(--text-muted-dark);
}

.dhikr-translation {
  font-family: 'Lato', sans-serif;
  font-size: 1.2rem;
  color: var(--text-muted-dark);
  line-height: 1.5;
}

.dhikr-count {
  display: inline-block;
  background: var(--white-20);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-top: 1rem;
  font-weight: 600;
}

.countdown-timer {
  position: fixed;
  top: 2rem;
  right: 2rem;
  background: var(--black-50);
  padding: 1rem 1.5rem;
  border-radius: 10px;
  font-family: 'Cairo', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
}

.close-button {
  position: fixed;
  top: 2rem;
  left: 2rem;
  background: var(--white-20);
  border: none;
  color: var(--white);
  padding: 0.8rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  transition: background 0.3s ease;
}

.close-button:hover {
  background: var(--white-30);
}

.dhikr-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}

.nav-btn {
  background: var(--white-20);
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  margin: 0 2rem;
  padding: 1rem;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.nav-btn:hover:not(:disabled) {
  background: var(--white-30);
  transform: scale(1.1);
}

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

.dhikr-counter {
  font-size: 1.3rem;
  font-weight: 600;
  background: var(--black-30);
  padding: 0.5rem 1rem;
  border-radius: 20px;
}

@media (max-width: 768px) {
  .adzkaar-title {
    font-size: 2.5rem;
  }
  
  .dhikr-arabic {
    font-size: 1.8rem;
  }
  
  .dhikr-transliteration {
    font-size: 1.1rem;
  }
  
  .dhikr-translation {
    font-size: 1rem;
  }
  
  .dhikr-item {
    padding: 1.5rem;
  }
}
