html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background: linear-gradient(
        to bottom,
        #65A5D1 0%,
        #89BFE0 35%,
        #B0D8EC 70%,
        #F0F8FF 100%
    );
    background-attachment: fixed;
    overflow-x: hidden;

    /* для айфонов */
    min-height: -webkit-fill-available;
}

body {
    /* чтобы фон заходил и под статусбар */
    background-color: #65A5D1;
}

/* Контейнер */
.container {
    position: relative;
    max-width: 600px;
    margin: 5vh auto;   /* адаптивный отступ сверху/снизу */
    padding: 20px;
    z-index: 10;
}


/* Текстовые элементы */
h1, h2 {
    text-align: center;
    color: #333;
}

/* Поля ввода */
textarea, input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

/* Кнопки */
button {
    width: 100%;
    padding: 10px;
    background: #65A5D1;
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #4B89B0;
    transform: translateY(-3px); /* лёгкий подъём */
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
button {
    transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
}


/* Список идей */
#ideasList {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

/* Анимация появления кнопки */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}


#notification {
    display: none;
    margin: 8px 0;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    transition: opacity 0.3s ease-in-out;
}

#notification.success {
    color: green;
}

#notification.error {
    color: red;
}

#notification.show {
    display: block;
    opacity: 1;
}



.container {
    max-width: 600px;
    width: 90%; /* на мобилках тянется */
    margin: 30px auto;
}

@media (max-width: 600px) {
    body {
        overflow-x: hidden; /* убираем прокрутку вправо */
    }
    h1 {
        font-size: 20px;
    }
    button {
        font-size: 14px;
        padding: 8px;
    }
}

textarea {
    resize: none;         /* запрещаем тянуть */
    min-height: 80px;     /* фиксированная высота */
    width: 100%;          /* ширина как у кнопки */
    box-sizing: border-box;
}

body {
    font-family: 'Inter', Arial, sans-serif;
}
/* Выпадающий список категорий */
select {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    font-size: 16px;
    color: #333;
    cursor: pointer;
    appearance: none; /* убираем стандартную стрелку */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

select:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(101,165,209,0.8);
}