/* ===========================================================
   Skript: CSS/notifications.css - DOMERA
   Zweck: Einheitliches Notification-System (showNoti)
   =========================================================== */

/* Grundlayout */
.notification {
    display: flex;
    position: relative;
    padding: 14px 16px 14px 48px;
    border-radius: 6px;
    font-family: sans-serif;
    font-size: 15px;
    max-width: 460px;
    width: 100%;
    margin-bottom: 16px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

.notification .icon-left {
    position: absolute;
    top: 14px;
    left: 16px;
    font-size: 20px;
    opacity: 0.9;
}

.notification .notification-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.notification .notification-title {
    font-weight: bold;
    font-size: 16px;
    margin: 0;
}

.notification .notification-text {
    line-height: 1.4;
}

/* ===========================================================
   CLOSE BUTTON - neutraler Standard
   =========================================================== */
.notification .close-btn {
    position: absolute;
    top: 8px;
    right: 10px;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;

    background: white;
    color: #333;
    border: 2px solid #333;
    border-radius: 50%;

    font-size: 16px;
    font-weight: bold;
    line-height: 24px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.notification .close-btn:hover {
    background-color: #555;
    color: white;
}

/* ===========================================================
   Farbschemata je Typ
   =========================================================== */

/* ❌ ERROR */
.notification.error {
    background-color: #e74c3c;
    color: white;
}

.notification.error .close-btn {
    color: #e74c3c;
    border-color: #e74c3c;
}

.notification.error .close-btn:hover {
    background-color: #b82a1b;
    color: white;
}

/* ℹ️ INFO */
.notification.info {
    background-color: #f1c40f;
    color: #1a1a1a;
}

.notification.info .close-btn {
    color: #000;
    border-color: #000;
}

.notification.info .close-btn:hover {
    background-color: #222;
    color: white;
}

/* ✅ SUCCESS */
.notification.success {
    background-color: #1f7a49;
    color: white;
}

.notification.success .close-btn {
    color: #1d6335;
    border-color: #1d6335;
}

.notification.success .close-btn:hover {
    background-color: #1d6335;
    color: white;
}

/* ⚠️ WARNING */
.notification.warning {
    background-color: #f39c12;
    color: white;
}

.notification.warning .close-btn {
    color: #8a4b00;
    border-color: #8a4b00;
}

.notification.warning .close-btn:hover {
    background-color: #8a4b00;
    color: white;
}

/* ===========================================================
   Effekte & Zusatzstile
   =========================================================== */

/* Fade-out Effekt */
.notification.fade-out {
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Link-Stil (z. B. Aktivierungslink erneut senden) */
.notification .resend-link {
    display: inline-block;
    margin-top: 6px;
    text-decoration: underline;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.95);
    transition: color 0.2s ease;
}

.notification .resend-link:hover {
    color: #ffffff;
    text-decoration: none;
}
