
:root {
  --primary: #4361ee;
  --secondary: #3f37c9;
  --accent: #4895ef;
  --light: #f8f9fa;
  --dark: #212529;
  --success: #4cc9f0;
  --text: #2b2d42;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --accordion-bg: #f8f8f8;
  --accordion-text: #3e326a;
  --accordion-hover: #f0f0f0;
  --accordion-content-text: #3e3c75;
  --border-color: #e0e0e0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f5f7fa;
  color: var(--text);
  line-height: 1.6;
}

h5 {
  font-size: 2.0em;
  line-height: 1em;
  margin-bottom: 0.4em;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.app-container {

  height: 100vh;
  overflow-y: auto;
  box-sizing: border-box;

  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.navbar {
  position: sticky;
  top: 8px;
  background-color: white;
  box-shadow: var(--shadow);
  z-index: 100;
  padding: 0.5rem 0;
  border-radius: 10px;
}

.buttons-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.5rem;
  transition: var(--transition);
}

.nav-btn,
.back-btn,
.city-btn,
.cargo-btn {
  padding: 12px 20px;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.nav-btn {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: var(--shadow);
}

.nav-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(67, 97, 238, 0.25);
}

.back-btn {
  background-color: var(--light);
  color: var(--dark);
  border: 1px solid #dee2e6;
}

.back-btn:hover {
  background-color: #e9ecef;
}

.city-btn {
  background-color: var(--accent);
  color: white;
}

.cargo-btn {
  background-color: var(--success);
  color: white;
}

.content {
  padding: 0.3rem 0;
  margin-top: 20px;
}

.info-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 15px;
}

.info-card {
  background-color: white;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
  margin-top: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}

.info-card.active {
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hidden {
  display: none;
}

/* Адаптація для планшетів */
@media (max-width: 768px) {
  .buttons-container {
    gap: 0.6rem;
  }

  .nav-btn,
  .back-btn,
  .city-btn,
  .cargo-btn {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .info-card {
    padding: 1.5rem;
  }
}

/* Адаптація для телефонів */
@media (max-width: 480px) {
  .buttons-container {
    gap: 0.4rem;
  }

  .nav-btn,
  .back-btn,
  .city-btn,
  .cargo-btn {
    padding: 8px 12px;
    font-size: 0.85rem;
    flex: 1 1 calc(50% - 10px);
    justify-content: center;
    text-align: center;
  }

  .info-card {
    padding: 1rem;
    margin-top: 1rem;
  }
}

/*чорна тема
/* Додаємо перемикач теми */
.theme-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

/* Стилі для темної теми */
body.dark-theme {
  --primary: #5a67d8;
  --secondary: #4c51bf;
  --accent: #667eea;
  --light: #2d3748;
  --dark: #f8f9fa;
  --success: #63b3ed;
  --text: #e2e8f0;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
}

body.dark-theme .navbar {
  background-color: #1a202c;
  border-bottom: 1px solid #2d3748;
}

body.dark-theme .info-card {
  background-color: #2d3748;
  border: 1px solid #4a5568;
}

body.dark-theme .back-btn {
  background-color: #4a5568;
  color: var(--dark);
  border: none;
}

body.dark-theme .back-btn:hover {
  background-color: #718096;
}

/* Анімація перемикання теми */
body.theme-transition * {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}



body {
  margin: 0;
  padding: 0;
  overflow: hidden;

  background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),
    url('./img/logo/Logo_white-theme.jpg') no-repeat center center fixed;
  background-size: cover;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}

/* Для темної теми - затемнення фону */
body.dark-theme {
  background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),
    url('./img/logo/Logo_dark-theme.jpg') no-repeat center center fixed;
  background-size: cover;
}


.text-with-icon {
  display: flex;
  align-items: center;
  gap: 8px;
}

.text-icon {
  width: 30px;
  height: 30px;
  object-fit: contain; 
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.2));
}








/*
.custom-accordion {
  margin: 20px 0;
  font-family: 'Roboto', sans-serif;
}

.custom-accordion-item {
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 8px;
}

.custom-accordion-header {
  padding: 12px 15px;
  background-color: #f8f8f8;
  color: #333;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.custom-accordion-header:hover {
  background-color: #f0f0f0;
}

.custom-accordion-header::after {
  content: '+';
  font-size: 20px;
  transition: transform 0.9s ease;
}

.custom-accordion-item.active .custom-accordion-header::after {
  transform: rotate(45deg);
}

.custom-accordion-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}

.custom-accordion-item.active .custom-accordion-content {
  max-height: 100px;
  padding: 10px 15px;
}

.custom-accordion-close {
  color: #0066cc;
  cursor: pointer;
  font-size: 13px;
  text-decoration: underline;
  margin-top: 8px;
  display: inline-block;
}



.custom-accordion-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}

.custom-accordion-item.active .custom-accordion-content {
  max-height: none;
  padding: 10px 15px;
  overflow-y: auto;
}



.custom-accordion {
  margin: 20px 0;
  font-family: 'Roboto', sans-serif;
}

.custom-accordion-item {
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 8px;
}

.custom-accordion-header {
  padding: 12px 15px;
  background-color: #f8f8f8;
  color: #333;

  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.custom-accordion-header:hover {
  background-color: #f0f0f0;
}

.custom-accordion-header::after {
  content: '+';
  font-size: 20px;
  transition: transform 0.3s ease;
}

.custom-accordion-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 14px;
  color: #1f0b0a;

  line-height: 1.5;
}

.custom-accordion-close {
  color: #0066cc;
  cursor: pointer;
  font-size: 13px;
  text-decoration: underline;
  margin-top: 8px;
  display: inline-block;
}


@media (prefers-color-scheme: dark) {
  .custom-accordion-header {
    background-color: #63B3ED;
    color: #ffffff;
    border-bottom-color: black;
  }

  .custom-accordion-header:hover {
    background-color: #087a9d;
  }

  .custom-accordion-content {
    color: #e0e0e0;

  }

  .custom-accordion-close {
    color: #4a9cff;

  }
}

.custom-accordion-header,
.custom-accordion-content {
  color: #000000 !important;

}

.dark-theme .custom-accordion-header,
.dark-theme .custom-accordion-content {
  color: #ffffff !important;

}
*/
/* Основні стилі акордеону */


.custom-accordion {
  margin: 20px 0;
  font-family: inherit;
  /* Успадковуємо шрифт з батьківського елемента */
}

.custom-accordion-item {
  border-bottom: 1px solid var(--border-color, #e0e0e0);
  margin-bottom: 8px;
}

.custom-accordion-header {
  padding: 12px 15px;
  background-color: var(--accordion-bg, #f8f8f8);
  color: var(--accordion-text, #333);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition, all 0.3s ease);
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.custom-accordion-header:hover {
  background-color: var(--accordion-hover, #f0f0f0);
}

.custom-accordion-header::after {
  content: '+';
  font-size: 20px;
  transition: var(--transition, all 0.3s ease);
}

.custom-accordion-item.active .custom-accordion-header::after {
  transform: rotate(45deg);
}

.custom-accordion-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  transition: var(--transition, all 0.3s ease);
  font-size: 14px;
  color: var(--accordion-content-text, #555);
  line-height: 1.5;
}

.custom-accordion-item.active .custom-accordion-content {
  max-height: none;
  padding: 10px 15px;
}

.custom-accordion-close {
  color: var(--link-color, #0066cc);
  cursor: pointer;
  font-size: 13px;
  text-decoration: underline;
  margin-top: 8px;
  display: inline-block;
}

/* Темна тема */
.dark-theme {
  --accordion-bg: #2d3748;
  --accordion-text: #ffffff;
  --accordion-hover: #3b5684;
  --accordion-content-text: #e2e8f0;
  --border-color: #374e75;
}