.preview-container {
  position: sticky;
  top: -25px; /* Компенсируем padding родителя */
  z-index: 100;
  margin: -25px -25px 20px -25px; /* Отрицательные margin для выхода за padding */
  padding: 25px 25px 15px 25px; /* Верхний padding больше для компенсации */
  background: #f5f5f5;
  border-radius: 12px 12px 0 0; /* Скругление как у карточки */
  border: 1px solid #ddd;
  border-bottom: 2px solid #ddd;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Для контента внутри превью */
#previewContent {
  padding: 10px;
  background: white;
  border-radius: 4px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px; /* Отступ от заголовка */
}

/* Заголовок внутри превью */
.preview-container h3 {
  margin: 0;
  font-size: 16px;
  color: #2c3e50;
}
  
  /* Модальное окно */
  .font-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
  }
/* Модификация для родительских элементов */
.font-settings-card {
  position: relative; /* Нужно для sticky */
  background: white;
  padding: 25px;
  border-radius: 12px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column; /* Чтобы превью было вверху */
}

/* Первый элемент после превью (заголовок) */
.preview-container + h2 {
  margin-top: 10px !important; /* Уменьшаем отступ */
}
  .font-settings-card h2 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 22px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
  }
  /* Меню категорий */
/* Меню категорий */
.settings-menu {
  display: flex;
  margin-bottom: 0;
  border-bottom: 1px solid #eee;
  gap: 5px;
  padding: 0 25px 15px 25px;
  background: #f5f5f5;
}
  .settings-menu button {
    padding: 10px 16px;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: #7f8c8d;
    border-radius: 6px;
    transition: all 0.2s ease;
  }
  .settings-menu button:hover {
    background: #f5f5f5;
    color: #34495e;
  }
  .settings-menu button.active {
    background: #3498db;
    color: white;
  }
  /* Категории настроек */
  .settings-category {
    display: none;
    animation: fadeIn 0.3s ease;
  }
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .settings-category.active {
    display: block;
  }
  .settings-category h3 {
    margin: 15px 0;
    color: #34495e;
    font-size: 16px;
  }
  /* Элементы настроек */
  .setting-item {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
  }
  .setting-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
  }
  .setting-item input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
  }
  .setting-item input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  }
  .setting-item select {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: white;
    font-size: 14px;
  }
  .setting-item input[type="color"] {
    width: 50px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 2px;
    background: white;
  }
  .value-display {
    display: inline-block;
    min-width: 30px;
    text-align: center;
    font-weight: bold;
    color: #3498db;
  }
  /* Кнопки */
  .font-actions {
    display: flex;
    margin-top: 25px;
    gap: 10px;
  }
  .font-actions button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
  }
  .reset-all-btn {
    background: #e74c3c;
    color: white;
  }
  .reset-all-btn:hover {
    background: #c0392b;
    transform: translateY(-1px);
  }
  #closeFontSettingsBtn {
    background: #3498db;
    color: white;
  }
  #closeFontSettingsBtn:hover {
    background: #2980b9;
    transform: translateY(-1px);
  }
  .reset-category-btn {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    background: #e74c3c;
    color: white;
    font-weight: 600;
    font-size: 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .reset-category-btn:hover {
    background: #c0392b;
    transform: translateY(-1px);
  }
  /* Группировка элементов */
  .settings-group {
    margin-bottom: 25px;
  }
  .settings-group h4 {
    margin: 0 0 10px 0;
    color: #7f8c8d;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay[style*="display:flex"] {
  opacity: 1;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: white;
  border-radius: 16px;
  width: 80%;
  max-width: 420px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay[style*="display:flex"] .modal-content {
  transform: translateY(0);
}

.modal-header {
  padding: 24px 24px 16px;
  text-align: center;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.warning-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  animation: pulse 1.5s infinite;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #D84315;
}

.modal-body {
  padding: 20px 24px;
}

.modal-description {
  color: #616161;
  margin-bottom: 16px;
  text-align: center;
  font-size: 0.95rem;
}

.data-loss-list {
  background: #FFF8E1;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 20px;
}

.data-loss-item {
  display: flex;
  align-items: center;
  padding: 8px 0;
  color: #5D4037;
}

.data-icon {
  width: 18px;
  height: 18px;
  margin-right: 12px;
  fill: #5D4037;
}

.modal-warning {
  display: flex;
  align-items: center;
  background: #FFF3E0;
  border-radius: 8px;
  padding: 12px;
  font-size: 0.9rem;
  color: #E65100;
}

.alert-icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  fill: #E65100;
}

.modal-footer {
  display: flex;
  padding: 16px 24px;
  background: #FAFAFA;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.modal-btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.ghost-btn {
  background: transparent;
  color: #757575;
  margin-right: 12px;
}

.ghost-btn:hover {
  background: rgba(0,0,0,0.05);
}

.danger-btn {
  background: #D32F2F;
  color: white;
}

.danger-btn:hover {
  background: #B71C1C;
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.btn-icon {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  fill: currentColor;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
/* Убираем синий фон при тапе на мобильных */
button, a {
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
div, span, svg {
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
button:focus,
a:focus {
  outline: none;
}
[tabindex]:focus {
  outline: none;
}


/* ПАНЕЛЬ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


.NONTBQwM3TTzg1BwETrqFRwrZllRZKnU {
    background-color: #0d2957;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%; /* можно задать фиксированную ширину, например, 1200px */
    height: 60px; /* можно выбрать высоту, которая будет подходить */
}

.NONTBQwM3TTzg1BwETrqFRwrZllRZKnU a {
    display: flex;
    align-items: center;
    color: #0d2957;
    text-align: left;
    text-decoration: none;
}
.NONTBQwM3TTzg1BwETrqFRwrZllRZKnU a:hover {
    background-color: #FFA500;
    color: black;
}
.NONTBQwM3TTzg1BwETrqFRwrZllRZKnU a.active {
    background-color: #0d2957;
    color: white;
}
.NONTBQwM3TTzg1BwETrqFRwrZllRZKnU a {
    margin-left: 0;
}
.ezfYS97CIoeKhfP6fS9WGoJtu3tyvPZx {
    margin: 0;
    display: flex;
    align-items: center;
}
.ezfYS97CIoeKhfP6fS9WGoJtu3tyvPZx a {
    padding-left: 5px; 
    display: flex;
    align-items: center;
}
.xpAW8lLAxAYb97tI1MFRUqfoeYwCZreV {
    width: 2.5em;
    height: 2.5em;
}
.ynBSYph0FEuiY9rrTlFeHjeFRScZpjcx {
    display: flex;
    flex-direction: column;
    color: white;
    font-size: 1.2em;
    font-weight: bold;
    line-height: 1.2em;
    padding-left: 10px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7), -1px -1px 2px rgba(0, 0, 0, 0.7);
    word-wrap: break-word; 
    word-break: break-word; 
    overflow-wrap: break-word; 
}
.saLJgNE0nnkzef97l1Uv3aINyAv7COPO {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7), -2px -2px 4px rgba(0, 0, 0, 0.7);
}
.mvaVZhkq3qTqJ3FihrABaJGnem11lSEo {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7), -2px -2px 4px rgba(0, 0, 0, 0.7);
}
.mvaVZhkq3qTqJ3FihrABaJGnem11lSEo {
    font-size: 1em;
}
.a82L0jYgy8ad06H3gWXAYLUWQff3fATe {
    display: flex;
    align-items: center;
    padding: 0;
}
.a82L0jYgy8ad06H3gWXAYLUWQff3fATe a {
    margin-left: 0;
}
.VrcTsJpZAsYJUduQr8YL0YRlZ0PT5tpW {
    width: 3em;
    height: 3em;
}

/* другое */




    body {
      margin: 0;
      font-family: 'Roboto', sans-serif;
      background-color: #f9f9fb;
    }

    .u4v6z9mc {
      display: flex;
      align-items: center;
      background: #fff;
      border-radius: 16px;
      box-shadow: 0 1px 4px rgba(0,0,0,0.1);
      overflow: hidden;
      margin: 5px;
    }

    .m0c7r1bw {
      background: #4a7dff;
      color: #fff;
      padding: 5px;
      min-width: 75px;
      display: flex;
      flex-direction: column;
      align-items: center;
      border-top-left-radius: 16px;
      border-bottom-left-radius: 16px;
    }

    .g3x2p8fn {
      font-size: 12px;
      margin-bottom: 6px;
    }

    .x1e4v7zk {
      font-size: 24px;
      line-height: 1;
    }

    .c8n3q0ys {
      font-size: 14px;
      margin-top: 6px;
    }

    .v9k2a5md {
      flex: 1;
      padding: 1px 5px;
    }

    .j7t0b6qe {
      font-size: 16px;
      color: #444;
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 3px;
    }

    .e6s3l1pa svg {
      display: block;
    }

    .z2y8w3hx {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-wrap: wrap;
      margin-left: -4px;
      margin-top: -4px;
    }

    .z2y8w3hx .q0m9k5tu {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 24px;
      height: 24px;
      margin-left: 2px;
      flex-shrink: 0;
    }

    .z2y8w3hx .q0m9k5tu svg {
      width: 28px;
      height: 28px;
      display: block;
      vertical-align: middle;
    }

    .b4f6n2dr {
      background: #d2d3d6;
      border-radius: 12px;
      padding: 2px 6px;
      font-size: 12px;
      display: flex;
      align-items: center;
      gap: 4px;
      color: #444;
      flex-shrink: 0;
    }

    .b4f6n2dr svg {
      width: 12px;
      height: 12px;
      display: block;
      vertical-align: middle;
    }

    .f5h8c2oy {
      position: relative;
      display: block;
      width: 18px;
      height: 18px;
    }

    .f5h8c2oy input {
      opacity: 0;
      width: 0;
      height: 0;
    }

    .d7r2x0ev {
      position: absolute;
      top: 0;
      left: 0;
      height: 18px;
      width: 18px;
      background-color: transparent;
      border: 2px solid #888;
      border-radius: 3px;
    }

    .f5h8c2oy input:checked ~ .d7r2x0ev {
      background-color: #4a7dff;
      border-color: #4a7dff;
    }

    .d7r2x0ev:after {
      content: "";
      position: absolute;
      display: none;
    }

    .f5h8c2oy input:checked ~ .d7r2x0ev:after {
      display: block;
    }

    .f5h8c2oy .d7r2x0ev:after {
      left: 5px;
      top: 1px;
      width: 4px;
      height: 8px;
      border: solid white;
      border-width: 0 2px 2px 0;
      transform: rotate(45deg);
    }

/* === images.css === */
.transport-type.bus {
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASAgMAAAAroGbEAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAMUExURQAAAACAAP///8DAwFdGW0MAAAABdFJOUwBA5thmAAAANklEQVQI12NgQAaioQ5AMmpVAAMDY2hoCJB8tWoLkFy1aglWEqIGQi4NXQInwSIMAUAII0EAAGCcFKbJihAOAAAAAElFTkSuQmCC");
}

.transport-type.trolleybus {
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASAgMAAAAroGbEAAAADFBMVEUAAADAwMD///8Ac6wQQkMlAAAAAXRSTlMAQObYZgAAAEFJREFUeF5lytEJACEMA9BAB3DPm+kmKAVXEFyoAwgxWPDHBN5HCIBMYXPI1gRILUYu+fkv3eO1PtfOON4dqZaVDa25JKCSbwixAAAAAElFTkSuQmCC");
}

.transport-type.tram {
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASAgMAAAAroGbEAAAABGdBTUEAALGPC/xhBQAAAAxQTFRFAAAAwMDA////3DEx2CBNDwAAAAF0Uk5TAEDm2GYAAAA9SURBVHjaY2Bg/sMABMw8INL+/wEg+f//ByB5a1UBkHy1agNWEqIGQv7+h2BDTODnB5lmwwxif2AAiYMAAF9bIa2CCufGAAAAAElFTkSuQmCC");
}

.transport-type.train {
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASAgMAAAAroGbEAAAABGdBTUEAALGPC/xhBQAAAAxQTFRFAAAAwMDA////MDAwFsRlHAAAAAF0Uk5TAEDm2GYAAAA3SURBVHjaY2BABvb/DwDJX6s+MDAw////B0hmrZoDJFetWoOVhKiBkOv/r4GTYBGGD0AII0EAAOLaIsCN4ck7AAAAAElFTkSuQmCC");
}

.transport-type.minibus {
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAMAAABhEH5lAAAABGdBTUEAALGPC/xhBQAAAwBQTFRFAAAA/2YAwMDA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAqe8k/AAAAQB0Uk5T////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////AFP3ByUAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjEwMPRyoQAAAExJREFUKFOVkEkOADAIAl3+/+ZWpT0YTJNynIBBZJHkB2kJCQRVPXRYIXiuD8jS5G4VBQKJ6BMNtwaUBbJIu0WIg9EVjdtDhNpCw14bWjLT41gGSD0AAAAASUVORK5CYII=");
}

/* === notifications.css === */
:root {
    --good-color: #4CAF50;
    --neutral-color: #9E9E9E;
    --bad-color: #F44336;
    --ad-color: #FFC107;
    --other-color: #2196F3;
    --modal-bg: rgba(0, 0, 0, 0.6);
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --border-radius: 12px;
}

.notification-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--modal-bg);
    z-index: 10000;
    padding: 20px;
    box-sizing: border-box;
    animation: fadeIn 0.3s ease forwards;
    overflow-y: auto;
}

.notification-card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    max-width: 480px;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    animation: slideUp 0.3s ease forwards;
    margin: 0 auto;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.notification-category {
    padding: 12px 20px;
    font-size: 1.0rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
    user-select: none;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    box-shadow: inset 0 -4px 8px rgba(0, 0, 0, 0.15);
}

.notification-category .left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-category .icon {
    font-size: 1.3rem;
}

.category-good {
    background-color: var(--good-color);
}

.category-neutral {
    background-color: var(--neutral-color);
}

.category-bad {
    background-color: var(--bad-color);
}

.category-ad {
    background-color: var(--ad-color);
    color: #333;
}

.category-other {
    background-color: var(--other-color);
}

.close-btn {
    font-size: 1.8rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: color 0.3s ease;
    user-select: none;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}

.close-btn:hover,
.close-btn:focus {
    color: white;
    outline: none;
}

.notification-header {
    padding: 8px 20px 10px 20px;
    margin-top: 0;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #e0f7fa, #e0f2f1);
}

.notification-body {
    padding: 0 20px 20px 20px;
    overflow-y: auto;
    flex-grow: 1;
    min-height: 100px;
    max-height: calc(90vh - 300px);
}

.notification-image {
    width: 100%;
    max-height: 250px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 15px;
    opacity: 0;
    transition: opacity 0.4s ease;
    display: none;
}

.notification-image.visible {
    opacity: 1;
    display: block;
}

.notification-text {
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-y: auto;
}

.action-link-wrapper {
    padding: 10px 20px;
    background: #fff;
}

.action-link {
    background-color: var(--good-color);
    color: white;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 12px 0;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    user-select: none;
    transition: background-color 0.3s ease;
}

.action-link:hover,
.action-link:focus {
    background-color: #3e8e41;
    outline: none;
}

.notification-date {
    background: #f0f0f0;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: #666;
    user-select: none;
    text-align: right;
    border-top: 1px solid #ddd;
    flex-shrink: 0;
}

.notification-footer {
    background: #f9f9f9;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #ddd;
    flex-shrink: 0;
    gap: 10px;
}

.notification-counter {
    font-size: 0.9rem;
    color: #666;
    user-select: none;
    min-width: 40px;
    text-align: left;
}

.notification-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    user-select: none;
    background-color: #e0e0e0;
    color: #333;
    min-width: 80px;
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.action-btn:hover:not(:disabled),
.action-btn:focus:not(:disabled) {
    background-color: #d0d0d0;
    outline: none;
}

/* === progress.css === */
.progress-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 350px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    display: none;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background-color: #4285f4;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
}

.progress-size-info {
    text-align: center;
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.progress-log {
    font-size: 12px;
    color: #555;
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 10px;
    min-height: 20px;
    max-height: 300px;
    overflow-y: visible; 
}

.progress-log-entry {
    margin-bottom: 5px;
    line-height: 1.4;
    word-break: break-word;
}

.progress-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

.progress-log-entry.error {
    color: #d32f2f;
    font-weight: bold;
}

.success-checkmark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.checkmark {
    width: 150px; /* Увеличено с 80px */
    height: 150px; /* Увеличено с 80px */
    border-radius: 50%;
    display: block;
    stroke-width: 4; /* Увеличено с 4 */
    stroke: #21A038;
    stroke-miterlimit: 10;
    margin: 0 auto 15px; /* Увеличено с 15px */
    box-shadow: 0 0 0 rgba(33, 160, 56, 0.1);
    animation: 
        checkmark-fill 0.4s ease-in-out 0.4s forwards, 
        checkmark-scale 0.3s ease-in-out 0.9s both;
}

.checkmark__circle {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    stroke-width: 4; /* Увеличено с 4 */
    stroke-miterlimit: 10;
    stroke: #21A038;
    fill: none;
    animation: checkmark-stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: checkmark-stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

.success-message {
    font-size: 2rem; /* Увеличено с 1.5rem */
    color: #21A038;
    font-weight: bold;
    animation: fadeIn 0.5s ease-in-out;
}

/* Анимации остаются без изменений */
@keyframes checkmark-stroke {
    100% { stroke-dashoffset: 0; }
}

@keyframes checkmark-scale {
    0%, 100% { transform: none; }
    50% { transform: scale3d(1.1, 1.1, 1); }
}

@keyframes checkmark-fill {
    100% { box-shadow: inset 0 0 0 100px rgba(33, 160, 56, 0.1); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* === styles.css === */


.refresh-clear-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #4285f4;
    color: white;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
}

.clear-btn {
    position: fixed;
    bottom: 160px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #4285f4;
    color: white;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
}

.settings-btn {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #4285f4;
    color: white;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
}


.refresh-clear-btn svg {
    width: 24px;
    height: 24px;
}

.refresh-clear-btn.loading {
    background-color: #757575;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.stop-row {
    border-bottom: 1px solid var(--divider);
    transition: background-color 0.2s;
}

.stop-row:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.time-row {
    background-color: #f9f9f9;
}

.card-main {
    background-color: #f0f9ff;
    border: 1px solid #0077cc;
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 8px;
    font-weight: bold;
}

.card-sub {
    background-color: #fafafa;
    border-left: 3px solid #cccccc;
    padding: 8px 10px;
    margin-bottom: 8px;
    font-weight: normal;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
}

.schedule-table th {
    text-align: left;
    padding: 8px 12px;
    background-color: var(--primary);
    color: white;
}

.schedule-table td {
    padding: 12px;
    border-bottom: 1px solid var(--divider);
}

:root {
    --primary: #1976D2;
    --primary-dark: #1565C0;
    --text: #212121;
    --text-secondary: #757575;
    --background: #f5f5f5;
    --card: #ffffff;
    --divider: #e0e0e0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--background);
    color: var(--text);
    font-size: 14px;
    line-height: 1.4;
}

#app {
    max-width: 100%;
    min-height: 100vh;
}

.header {
    background-color: var(--primary);
    color: white;
    //padding: 12px 16px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.header h1 {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

.loading {
    padding: 16px;
    text-align: center;
    color: var(--text-secondary);
}

.error {
    padding: 16px;
    text-align: center;
    color: #D32F2F;
}

.refresh-btn {
    position: fixed;
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: none;
    z-index: 5;
    cursor: pointer;
}

.clear-cache-btn {
    position: fixed;
    bottom: 80px;
    right: 16px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #f44336;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: none;
    z-index: 5;
    cursor: pointer;
}

.search-container {
    padding: 8px 12px;
    background-color: var(--card);
    position: sticky;
    top: 48px;
    z-index: 5;
}

.search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--divider);
    border-radius: 20px;
    font-size: 14px;
}

.list {
    padding: 8px 0;
}

.card {
    background-color: var(--card);
    margin: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.card-header {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-weight: bold;
    font-size: 15px;
}

.transport-type {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    text-align: center;
    line-height: 24px;
    margin-right: 8px;
    font-size: 12px;
    font-weight: bold;
}

.transport-type.bus {
    background-color: #4CAF50;
}

.transport-type.trolleybus {
    background-color: #FF9800;
}

.transport-type.tram {
    background-color: #2196F3;
}

.transport-type.train {
    background-color: #9C27B0;
}

.empty-message {
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
    padding: 12px 0;
}

.detail-view {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--background);
    z-index: 20;
    overflow-y: auto;
}

.detail-view.active {
    display: block;
}

.detail-header {
    position: sticky;
    top: 0;
    background-color: var(--primary);
    color: white;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    z-index: 10;
}

.back-btn {
    font-size: 20px;
    margin-right: 12px;
    cursor: pointer;
}

.detail-title {
    font-size: 18px;
    font-weight: bold;
    flex: 1;
}

.detail-content {
    padding: 8px 0;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}

.schedule-table th {
    background-color: var(--primary);
    color: white;
    padding: 8px 12px;
    text-align: left;
}

.schedule-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--divider);
}

.schedule-table tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.02);
}

.time-cell {
    display: inline-block;
    background-color: #E3F2FD;
    color: var(--primary);
    padding: 4px 8px;
    border-radius: 4px;
    //margin: 2px;
    font-family: monospace;
    font-size: 14px;
    transition: all 0.3s;
    
}

.day-tabs {
    display: flex;
    gap: 6px;
    margin: 8px 12px;
}

.day-tab {
    flex: 1;
    padding: 8px 0;
    background: #eee;
    color: #444;
    font-weight: 600;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    border: none;
    font-size: 14px;
}

.day-tab.active {
    background: var(--primary);
    color: #fff;
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.transport-type {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 8px;
    vertical-align: middle;
}

.first-active-time {
    font-weight: 700;
    background-color: #6fb059;
    color: white;
    border-radius: 4px;
    padding: 2px 6px;
    transition: all 0.3s;
}


/* Новые стили для расписания */
.stop-item {
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stop-header {
    padding: 12px 16px;
    background-color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color 0.2s;
}

.stop-header:hover {
    background-color: #f5f5f5;
}

.times-container {
    background-color: #f9f9f9;
    padding: 16px;
    width: 100%;
}

.times-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 8px;
    width: 100%;
    justify-items: center;
}

.time-cell {
    padding: 6px 4px;
    text-align: center;
    border-radius: 4px;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    font-size: 14px;
    min-width: 60px;
}

.time-past {
    color: #9e9e9e;
    opacity: 0.8;
}

.time-now {
    background-color: #2196F3;
    color: white;
    font-weight: bold;
}


.time-now {
    //font-weight: 700;
    background-color: #6fb059;
    color: white;
    border-radius: 4px;
    //padding: 3px 8px 3px 8px;
    transition: color 0.5s;
    line-height: 1.5;
    //font-family: 'Roboto', sans-serif;
}

.time-past {
    background-color: #D3D3D3;
    color: #999;
    text-decoration: line-through;
}

.week-day {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
    font-size: 11px;
    font-weight: bold;
    margin: 0 2px;
    transition: all 0.3s ease;
}

.day-work {
    background-color: #4CAF50;
    color: white;
}

.day-weekend {
    background-color: #F44336;
    color: white;
}

.day-current {
    box-shadow: 0 0 0 2px #FFC107;
}

.day-shifted {
    animation: pulse 1.5s infinite;
    position: relative;
}

.day-shifted::after {
    content: '!';
    position: absolute;
    top: -5px;
    right: -5px;
    background: #FF5722;
    color: white;
    width: 12px;
    height: 12px;
    font-size: 10px;
    border-radius: 50%;
    line-height: 12px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.day-neutral {
    background-color: #e0e0e0;
    color: #616161;
}


.times-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 5px;
    width: 100%;
}

.time-cell {
    text-align: center;
    padding: 6px 2px;
    font-size: clamp(14px, 3vw, 18px); /* Адаптивный размер текста */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 4px;
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .times-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 4px;
    }
    
    .time-cell {
        padding: 4px 1px;
        font-size: clamp(14px, 3vw, 18px); /* Адаптивный размер текста */
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .times-grid {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    }
    
    .time-cell {
        font-size: clamp(14px, 3vw, 18px); /* Адаптивный размер текста */
    }
}