/* ==========================================================================
   UI KIT: ALERTS & NOTICES (Известия за Успех, Грешка, Инфо)
   ========================================================================== */

.aopc-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: var(--fiptec-radius-global, 14px);
    border: 1px solid transparent;
    width: 100%;
    margin-bottom: 16px;
    position: relative;
    transition: all 0.3s ease;
}

/* 1. ВАРИАЦИИ (Variants) */

/* Success (Зелено) */
.aopc-alert-success {
    background-color: var(--fiptec-green-light); /* Вече го имаш във variables.css */
    border-color: rgba(16, 185, 129, 0.3);
}
.aopc-alert-success .aopc-alert-icon { color: var(--fiptec-green-dark); }
.aopc-alert-success .aopc-alert-title { color: var(--fiptec-green-dark); }

/* Error (Червено) */
.aopc-alert-error {
    background-color: var(--fiptec-red-light);
    border-color: var(--fiptec-red-light-border);
}
.aopc-alert-error .aopc-alert-icon { color: var(--fiptec-red-dark); }
.aopc-alert-error .aopc-alert-title { color: var(--fiptec-red-dark); }

/* Warning (Оранжево) */
.aopc-alert-warning {
    background-color: rgba(249, 115, 22, 0.1);
    border-color: rgba(249, 115, 22, 0.3);
}
.aopc-alert-warning .aopc-alert-icon { color: var(--fiptec-orange-active); }
.aopc-alert-warning .aopc-alert-title { color: var(--fiptec-orange-active); }

/* Info (Синьо) */
.aopc-alert-info {
    background-color: var(--fiptec-blue-vlight);
    border-color: var(--fiptec-blue-light);
}
.aopc-alert-info .aopc-alert-icon { color: var(--fiptec-blue-hover); }
.aopc-alert-info .aopc-alert-title { color: var(--fiptec-blue-hover); }


/* 2. СТРУКТУРА НА СЪДЪРЖАНИЕТО */
.aopc-alert-icon {
    flex-shrink: 0;
    margin-top: 2px; /* Подравнява иконата с първия ред текст */
}

.aopc-alert-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.aopc-alert-title {
    font-size: 15px;
    font-weight: 800;
    margin: 0;
    line-height: 1.4;
}

.aopc-alert-message {
    font-size: 14px;
    color: var(--fiptec-slate-800);
    line-height: 1.5;
}
.aopc-alert-message p { margin: 0; }
.aopc-alert-message a { font-weight: 700; text-decoration: underline; }

/* 3. БУТОН ЗА ЗАТВАРЯНЕ (Close Button) */
.aopc-alert-close {
    background: transparent;
    border: none;
    color: var(--fiptec-slate-400);
    cursor: pointer;
    padding: 4px;
    margin: -4px -4px -4px 0; /* Компенсира падинга, за да стои точно в ъгъла */
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.aopc-alert-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--fiptec-slate-700);
}