/* Сброс стилей */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Общие стили */

body {
    min-height: 100vh;
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    position:relative;
    padding-bottom:50px;
}

a {
    text-decoration: none;
    color: #333;
}

a:hover {
    color: #000;
}

/* Стили контейнера таблицы */

#table-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Стили таблицы */

#table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

th {
    cursor: pointer;
    background-color: #f2f2f2;
    font-weight: bold;
}

tbody tr:hover {
    background-color: #f7f7f7;
}


.sorted-asc {
background-color: #f7f7f7;
color: #333;
}

.sorted-desc {
background-color: #ddd;
color: #333;
}
  
/* Стили темной темы */

body.dark-theme {
    background-color: #222;
    color: #fff;
}

body.dark-theme #table-container {
    background-color: #222;
}

body.dark-theme #table {
    border-color: #444;
}

body.dark-theme th, body.dark-theme td {
    border-color: #555;
    background-color: #444;
}

body.dark-theme th {
    background-color: #555;
}

body.dark-theme tbody tr:hover {
    background-color: #555;
}

body.dark-theme #theme-toggle {
    background-color: #333;
    color: #fff;
}

body.dark-theme #phantom-button {
    background-color: #7610f2;
    color: #fff;
}
body.dark-theme #phantom-button.active {
    background-color: #fff;
    color: #7610f2;
}

body.dark-theme #phantom-button .icon path {
    fill: #7610f2;
}
body.dark-theme #theme-toggle.active {
    background-color: #fff;
    color: #333;
}

body.dark-theme #theme-toggle .icon path {
    fill: #333;
}


#instructions {
    padding-top: 500px;
    margin: 0 auto;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

#balances {
    font-family: "Source Code Pro";
    font-size: 16px;
    position: fixed;
    top: 40px;
    left: 40px;
}
/* Стили кнопки */

#theme-toggle {
    font-family: "Source Code Pro";
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    
    border: none;
    border-radius: 0%;
    background-color: #333;
    color: #ffffff;
    
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
    
    transition: all 0.3s ease-in-out;
}

#theme-toggle.active {
    background-color: #222;
    color: #fff;
}

#theme-toggle.active .icon path {
    fill: #fff;
}
#phantom-button {
    font-family: "Source Code Pro";
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999;
    
    border: none;
    border-radius: 0%;
    background-color: #c4b2f9;
    color: #ffffff;
    
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
    
    transition: all 0.3s ease-in-out;
}

#phantom-button.active {
    background-color: #c4b2f9;
    color: #fff;
}

#phantom-button.active .icon path {
    fill: #fff;
}
/* Стили иконки */

.icon {
    width: 24px;
    height: 24px;
    fill: #333;
}

.img:hover {
    filter: brightness(0.1);
}
  
.slider-wrapper {
    margin: 5px;
}

#slider1, #slider2 {
    width: 500px;
    appearance: none;
    -webkit-appearance: none;
    background: #ddd;
    border-radius: 5px;
    height: 10px;
    outline: none;
    cursor: pointer;
}

#slider1::-webkit-slider-thumb, #slider2::-webkit-slider-thumb {
    -webkit-appearance: none;
    background: #666;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

#slider1-value, #slider2-value {
    margin-left: 10px;
    font-weight: bold;
}

body {
    font-family: "Source Code Pro";
}

.tooltip{
    border-radius: 5px;
    background: #333;
    color:#ffffff;
}

body.dark-theme .tooltip{
    border-radius: 5px;
    color:#000;
    background: #ffffff;
}

button:hover{
    cursor: pointer;
}

/* Стили для общего контейнера */
.container {
    margin: 0 auto;
    display: flex;
    max-width: 700px;
}

/* 
padding-top: 20px;
    margin: 0 auto;
    max-width: 2500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: left;
    margin-bottom: 10px;
    */
.sliders-container {
    margin-right: 20px; 
    padding-top: 20px;
    flex: 1; /* Занимаем доступное пространство */
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
}

/* Стили для контейнера чекбоксов */
.checkbox-slider-container {
    padding-top: 40px;
    display: flex;
    flex-direction: column;/* Расположение элементов внутри контейнера */
}

/* Дополнительные стили для чекбоксов */
.checkbox-wrapper {
    margin-bottom: 7px; /* Пространство между чекбоксами */
}

input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 12px; /* задаем размеры для галочки */
    height: 12px;
    border: 1px solid #aaa; /* добавляем рамку */
    border-radius: 4px; /* закругляем углы */
    outline: none; /* убираем обводку при фокусе */
    cursor: pointer; /* меняем курсор при наведении */
}

body.dark-theme input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 12px; /* задаем размеры для галочки */
    height: 12px;
    background-color: #ffffff;
    border: 1px solid #aaa; /* добавляем рамку */
    border-radius: 4px; /* закругляем углы */
    outline: none; /* убираем обводку при фокусе */
    cursor: pointer; /* меняем курсор при наведении */
}

/* Стили для галочки при отмеченном состоянии */
input[type="checkbox"]:checked {
    background-color: #333; 
}

body.dark-theme input[type="checkbox"]:checked {
    background-color: #333; 
}

#popup {
    position: fixed;
    z-index: 100000;
    top: 240px; /* Отступ снизу */
    left: 40px; /* Отступ слева */
    background-color: #ffffff; /* Цвет фона */
    padding: 10px; 
    border-radius: 5px; 
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); /* Тень */
    animation: fadeOut 5s ease-in-out forwards; /* Анимация исчезания */
}
body.dark-theme #popup {
    background-color: #333;
    z-index: 100000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); /* Тень */
    animation: fadeOut 5s ease-in-out forwards; /* Анимация исчезания */
}

@keyframes fadeOut {
    0% { opacity: 1; } /* Начальная прозрачность */
    100% { opacity: 0; } /* Конечная прозрачность */
}

#input {
    font-family: "Source Code Pro";
    width: 130px;
    z-index: 999;
    border: none;
    border-radius: 0%;
    background-color: #f2f2f2;
    color: #333;
    text-align: right;
    padding: 2px;
    font-size: 18px;
}
body.dark-theme #input {
    font-family: "Source Code Pro";
    z-index: 999;
    border: "1px";
    border-radius: 0%;
    background-color: #333;
    color: #fff;
    text-align: right;
    padding: 2px;
    font-size: 18px;
}
#input:focus {
    outline: none; /* Убирает синюю обводку при фокусировке */
}

#content.blurred {
    filter: blur(5px);
}

/* overlay НЕ блюрится, потому что выше по z-index и вне body.blur */
#subscribe-overlay {
    font-family: "Source Code Pro";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    background: rgba(133, 72, 72, 0.85);
    color: white;
    font-size: 24px;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    pointer-events: all;
}

/* кнопка Metamask (правый верх) */
#metamask-button {
    font-family: "Source Code Pro";
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100000;
    background-color: #f7931a;
    color: white;
    border: none;
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
}

button {
    font-family: "Source Code Pro", monospace;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #2fe046;
    color: white;
    transition: background-color 0.3s ease;
  }

  input[type="number"] {
    font-family: "Source Code Pro", monospace;
    border: 2px solid #ffffff;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 16px;
    background-color: #ffffff;
    color: rgb(0, 0, 0);
    outline: none;
    margin-bottom: 15px;
  }
  
  input[type="number"]:focus {
    border-color: #ffffff;
  }

  input[type="number"]::-webkit-inner-spin-button,
  input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
  }

  .time-add-btn {
    font-family: "Source Code Pro", monospace;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    margin: 5px;
    font-size: 16px;
    cursor: pointer;
    background-color: #ffffff;
    color: rgb(0, 0, 0);
    transition: background-color 0.3s ease;
  }
  
  #add-time-menu {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* ВОТ ЭТО — полупрозрачный фон с блюром: */
    background-color: rgba(97, 97, 97, 0.6); /* Полупрозрачный фон */
    backdrop-filter: blur(5px);
    padding: 20px;
    z-index: 10001;
    font-family: 'Source Code Pro', monospace;
    color: #fff;
  }
  .add-seconds-btn {
    font-family: "Source Code Pro", monospace;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    margin: 5px;
    font-size: 16px;
    cursor: pointer;
    background-color: #ffffff;
    color: rgb(0, 0, 0);
    transition: background-color 0.3s ease;
  }

  #checking-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: white;
    color: #222;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-family: 'Source Code Pro', monospace;
    font-size: 24px;
    z-index: 99999;
    opacity: 1;
    transition: opacity 0.5s ease;
  }
  
  /* Текст прогресса */
  #checking-progress {
    font-size: 32px;
    margin-top: 20px;
  }


  #remaining-time {
    color: #000000;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'Source Code Pro', monospace;
    font-size: 13px;
  }
  
  /* Темная тема (если на body висит класс .dark-theme) */
  body.dark-theme #remaining-time {
    color: #fff; /* белый текст в тёмной теме */
  }

  /* Основной стиль кнопки */
  .clear-disabled-btn {
    
    margin-right: 20px;
    background-color: #222;
    color: #fff;
    border: none;
    padding: 8px 16px;
    font-family: 'Source Code Pro', monospace;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  /* Темная тема — если на body есть класс .dark-theme */
  body.dark-theme .clear-disabled-btn {
    background-color: #eee;
    color: #222;
  }
  
  /* === Общий стиль для всех кнопок === */
button, 
.clear-disabled-btn, 
#theme-toggle, 
#phantom-button, 
#metamask-button, 
.time-add-btn, 
.add-seconds-btn {
    font-family: "Source Code Pro", monospace;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

/* === Светлая тема === */
button, 
.clear-disabled-btn, 
.time-add-btn, 
.add-seconds-btn {
    background-color: #ffffff;
    color: #000000;
}

button:hover, 
.clear-disabled-btn:hover, 
.time-add-btn:hover, 
.add-seconds-btn:hover {
    background-color: #ddd;
    transform: scale(1.05);
}

/* === Специальные кнопки (Metamask / Phantom / Theme) — светлая тема === */
#metamask-button {
    background-color: #f7931a;
    color: white;
}

#metamask-button:hover {
    background-color: #e4820f;
    transform: scale(1.05);
}

#phantom-button {
    background-color: #c4b2f9;
    color: #fff;
}

#phantom-button:hover {
    background-color: #b39dea;
    transform: scale(1.05);
}

#theme-toggle {
    background-color: #333;
    color: #fff;
}

#theme-toggle:hover {
    background-color: #555;
    transform: scale(1.05);
}

/* === Темная тема === */
body.dark-theme button, 
body.dark-theme .clear-disabled-btn, 
body.dark-theme .time-add-btn, 
body.dark-theme .add-seconds-btn {
    background-color: #222;
    color: #fff;
}

body.dark-theme button:hover, 
body.dark-theme .clear-disabled-btn:hover, 
body.dark-theme .time-add-btn:hover, 
body.dark-theme .add-seconds-btn:hover {
    background-color: #444;
    transform: scale(1.05);
}

/* === Специальные кнопки в темной теме === */
body.dark-theme #metamask-button {
    background-color: #f7931a;
    color: white;
}

body.dark-theme #metamask-button:hover {
    background-color: #e4820f;
    transform: scale(1.05);
}

body.dark-theme #phantom-button {
    background-color: #c4b2f9;
    color: #fff;
}

body.dark-theme #phantom-button:hover {
    background-color: #b39dea;
    transform: scale(1.05);
}

body.dark-theme #theme-toggle {
    background-color: #eee;
    color: #222;
}

body.dark-theme #theme-toggle:hover {
    background-color: #ccc;
    transform: scale(1.05);
}

body.dark-theme #instruction-content {
    background-color: rgba(40, 40, 40, 0.95);
    color: #fff;
  }

body.dark-theme #lang-button {
    background-color: #eee; 
    color: #222;
}
