﻿.text_cropping {
    -ms-text-overflow: ellipsis;
    text-overflow: ellipsis;
    overflow: hidden;
    -ms-line-clamp: 2;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    display: -webkit-box;
    display: box;
    word-wrap: break-word;
    -webkit-box-orient: vertical;
    box-orient: vertical;
}
li {
    list-style-type: none;
    margin-right: 10px;
}
.ButtonContainer{
    display:flex;
    justify-content:center;
    margin-bottom:5px;
}
input{
    margin-bottom:5px;
}
.icon{
    font-size:23px;
    color:red;
}
#AddBtnCont {
    margin-top: 10px;
    justify-self:center;
    display: flex;
    justify-content: center
}
.AddBlockContainer {
    margin-bottom: 10px;
    margin-left: 10px;
    display: flex;
    justify-content: center
}
.shadow-lg{
    margin-bottom:10px;
}

/* Стили для спиннера отправки формы */
.form-spinner {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 4px;
    padding: 10px 15px;
    z-index: 99999;
    min-width: 120px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.form-spinner.active {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.form-spinner__circle {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.form-spinner__text {
    color: #fff;
    font-size: 14px;
    margin: 0;
    padding: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Стили для уведомления об успешной отправке */
.success-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(100vh);
    background: #ffffff;
    color: #333333;
    padding: 40px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    z-index: 99999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.success-popup.active {
    display: block;
    animation: slideUp 0.5s ease-out forwards;
}

.success-popup.hiding {
    animation: slideDown 0.5s ease-in forwards;
}

.success-popup__icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: #E31E24;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-popup__icon:before {
    content: '✓';
    font-size: 40px;
    color: white;
}

.success-popup__title {
    font-size: 24px;
    font-weight: 600;
    color: #2C3E50;
    margin: 0 0 15px;
}

.success-popup__message {
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 25px;
    color: #666666;
}

.success-popup__button {
    display: inline-block;
    padding: 12px 30px;
    background: #E31E24;
    color: white;
    border-radius: 0;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
}

.success-popup__button:hover {
    background: #c91920;
}

@keyframes slideUp {
    from {
        transform: translate(-50%, -50%) translateY(100vh);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translate(-50%, -50%) translateY(0);
        opacity: 1;
    }
    to {
        transform: translate(-50%, -50%) translateY(100vh);
        opacity: 0;
    }
}
