/* 1. кнопка добавления дела */
.fab-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #ff4757;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.5);
    z-index: 1000;
    transition: transform 0.2s, background-color 0.2s;
    padding: 0;
    line-height: 1;
}

    .fab-btn:hover {
        background-color: #ff6b81;
        transform: scale(1.1);
    }

/* плюс для кнопки */
.plus-icon {
    position: relative;
    width: 20px;
    height: 20px;
}

    .plus-icon::before {
        content: "";
        position: absolute;
        top: 9px;
        left: 0;
        width: 20px;
        height: 2px;
        background-color: white;
        border-radius: 1px;
    }

    .plus-icon::after {
        content: "";
        position: absolute;
        top: 0;
        left: 9px;
        width: 2px;
        height: 20px;
        background-color: white;
        border-radius: 1px;
    }

/* 2. стили для модального окна добавления общей штучки */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 380px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    text-align: center;
    border: none;
}

    .modal-content h3 {
        margin-top: 0;
        margin-bottom: 20px;
        color: #2f3542;
        font-size: 22px;
        font-weight: 600;
    }

.modal-input {
    width: 100%;
    padding: 12px 18px;
    border: 2px solid #f1f2f6;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

    .modal-input:focus {
        border-color: #ff4757;
    }

    .modal-input.is-invalid {
        border-color: #ff4757 !important;
        background-color: #fff5f6;
    }

.error-message {
    color: #ff4757;
    font-size: 14px;
    margin-top: 8px;
    margin-bottom: 15px;
    display: none;
    font-weight: 500;
    text-align: left;
    padding-left: 5px;
}

/* 3. кнопки внутри окна добавления штучки */
.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 15px;
}

.btn-round {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
    border: none;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    padding: 0;
    line-height: 1;
}

    .btn-round:active {
        transform: scale(0.95);
    }

.btn-custom-cancel {
    background-color: #ff4757;
}

    .btn-custom-cancel:hover {
        background-color: #d13745;
    }

.btn-custom-save {
    background-color: #2ed573;
}

    .btn-custom-save:hover {
        background-color: #21a956;
    }


.activity-text {
    flex-grow: 1;
    padding-left: 15px;
    padding-right: 15px;
    font-size: 16px;
    color: #2f3542;
    font-weight: 500;
    /* для переноса текста */
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

/* стили для иконок меню */
.nav-icon {
    width: 24px;
    height: 24px;
    object-fit: contain; /* Чтобы картинка не растягивалась и не деформировалась */
    transition: opacity 0.2s, transform 0.2s;
}

    /* Эффект при наведении */
    .nav-icon:hover {
        opacity: 0.7;
        transform: scale(1.05);
    }
