/* Общие стили */
body {
    font-family: Poppins, sans-serif;
    background: #2D2F39;
    color: #eef0ff;
    display: flex;
    justify-content: center;
    align-items: center;
	min-height: 95vh;
    /* flex-direction: column;*/

}

/* Контейнер для центрирования всего контента */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

/* Таймер */
.timer-container {
    text-align: center;
}

.time-display {
    font-size: clamp(4rem, 7vw, 6rem);
    font-weight: 800;
    margin: 10vh 0 0 0;
    background-image: linear-gradient(150deg, #FDFC47 0%, #24FE41 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    text-shadow: 0px 0px 20px rgba(36, 254, 64, 0.1); /* Тень для текста */
  
  
}

.cost-display {
    font-size: clamp(2rem, 4.5vw, 4rem);
    font-weight: 600;
    margin-bottom: 20px;
}

.controls button {
    font-size: 2rem;
    color: #eef0ff;
    background: none;
    border: none;
    margin: 0 20px;
}

.controls button:hover {
    background-image: linear-gradient(150deg, #FDFC47 0%, #24FE41 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.controls button:active {
    background-image: linear-gradient(150deg, #FDFC47 0%, #24FE41 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    transform: scale(0.90);
}

/* Стиль для блока настроек участников */
.settings {
    width: 95%;
    max-width: 450px;
    text-align: left;
    background-color: #393b48;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
    cursor: default;
    color: #eef0ff;
    margin: 35px 0 50px 0;
}

/* Основной стиль для контейнера с кнопками */
.rate-selection {
    display: flex;
    margin-top: 15px;
    gap: 15px;
    width: 100%;
    
    
}

/* Стиль для кнопок */
.rate-btn {
    padding: 10px 10px;
    font-size: 15px;
    border: 1px solid transparent;
    border-radius: 5px;
    background-color: #2B2D36;  /* Темный фон */
    color: #24FE41;  /* Светлый текст */
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    font-family: Poppins, sans-serif;
}

/* Стиль для активной кнопки */
.rate-btn.active {
    background-color: #393b48;
    color: #6a6b75  ;
    border-color: #6a6b75  ;

}

/* Стиль для неактивной кнопки */
.rate-btn:not(.active) {
    background-color: #464855;  /* Темный фон для неактивной кнопки */
    color: #eef0ff;  /* Светлый текст */
    border-color: transparent;  /* Обводка скрыта */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Эффект при наведении на кнопки */
.rate-btn:hover {
    /*border-color: #24FE41;*/
}

/* Стиль для участников */
#participants {
    display: flex;
    flex-direction: column;
    gap: 0px;
    margin-top: 10px;
    width: 100%;
  
}

.participant {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 5px 0;
    border-radius: 8px;
    width: 100%;
    position: relative; /* Для позиционирования креста внутри */
 
}

/* Стиль для инпутов */
.participant input[type="text"] {
    flex: 1;
    padding: 11px;
    border-radius: 5px;
    border: none;
    background-color: #2B2D36;
    color: #eef0ff;
    font-size: 1rem;
    outline: none;
    width: 100%;
    box-sizing: border-box; /* Учитывание паддингов в общей ширине */ 
      padding-right: 35px; /* Добавляем отступ для крестика внутри инпута */
  font-family: Poppins, sans-serif
}

/* Стиль для креста (удаления участника) */
.remove-participant {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: #8d3e3e;
    background: none;
    border: none;
    cursor: pointer;
}

/* Фокус на инпутах */
input:focus {
    box-shadow: inset 0 0 7px 0px #0000005c;
    border-color: transparent;
}

/* Плейсхолдеры */
.participant input::placeholder {
    color: #7D8190;
}

/* Удаление участника */
.remove-participant {
    font-size: 1.4rem;
    color: #8d3e3e;
    background: none;
    border: none;
    cursor: pointer;
}

.remove-participant:hover {
    color: #ff7b7b;
}

/* Кнопка добавления участника */
#addParticipantBtn {
    display: block;
    width: 50%;
    padding: 10px;
    font-size: 1rem;
    background: none;
    color: #eef0ff;
    border: none;
    cursor: pointer;
    margin: 10px auto 0;
    text-align: center;
    transition: color 0.3s;
    font-family: Poppins, sans-serif
}

#addParticipantBtn:hover {
    color: #cfd1dd;
    background: #393b48;
}

/* Убираем стрелки у инпута с типом number 
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield; 
    appearance: textfield; 
} */


/* Адаптивность */
@media (max-width: 480px) {
    .time-display {
        margin: 5vh 0 0 0;
    }

    .cost-display {
    }

    .controls button {

    }

    .settings {
        padding: 20px 15px;
        width: 80%;
    }

    .rate-selection {
        gap: 5px;
        flex-direction: column;
    }

    .participant {
        gap: 5px;
        flex-direction: column;
    }

    #addParticipantBtn {
        font-size: 0.9rem;
        padding: 8px;
        width: 100%;
    }
  
   #addParticipantBtn:hover {
      background: #464855;
     border-radius: 5px;
}
  
    .remove-participant {
    top: 72%;
}
  