/* PANDAWA STUDIO - Global Notification System */
.alert {
    position: relative;
    max-width: 100%;
    margin-bottom: 1rem;
    padding: 14px 17px 14px 48px;
    border: 1px solid #e1e8f1;
    border-left: 4px solid #8292a8;
    border-radius: 12px;
    background: #f5f8fc;
    color: #42536b;
    font-size: 13px;
    font-weight: 450;
    line-height: 1.6;
    overflow-wrap: anywhere;
    box-shadow: 0 4px 15px rgba(35, 55, 85, .045);
}

.alert::before {
    content: "i";
    position: absolute;
    top: 13px;
    left: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e3eaf4;
    color: #536780;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}

.alert > :last-child {
    margin-bottom: 0;
}

.alert strong,
.alert b {
    font-weight: 750;
}

.alert .alert-heading {
    margin: 0 0 4px;
    color: inherit;
    font-size: 14px;
    font-weight: 750;
}

.alert p {
    line-height: 1.6;
}

.alert a {
    color: inherit;
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Success */
.alert-success {
    border-color: #d3ebdc;
    border-left-color: #26965e;
    background: #f0faf4;
    color: #286b47;
}
.alert-success::before {
    content: "✓";
    background: #d9f2e3;
    color: #21814e;
}

/* Danger and error */
.alert-danger,
.alert-error {
    border-color: #f1d9d8;
    border-left-color: #dc5555;
    background: #fff5f4;
    color: #a43f3f;
}
.alert-danger::before,
.alert-error::before {
    content: "!";
    background: #fce1df;
    color: #c74343;
}

/* Warning */
.alert-warning {
    border-color: #f1e4c6;
    border-left-color: #d99a27;
    background: #fff9ed;
    color: #89621d;
}
.alert-warning::before {
    content: "!";
    background: #ffedc7;
    color: #a97713;
}

/* Information */
.alert-info {
    border-color: #d8e5f7;
    border-left-color: #4784dc;
    background: #f2f7ff;
    color: #365f95;
}
.alert-info::before {
    content: "i";
    background: #deebff;
    color: #326dc2;
}

/* Secondary and light */
.alert-secondary,
.alert-light {
    border-color: #e3e8ef;
    border-left-color: #8190a4;
    background: #f7f9fc;
    color: #536176;
}
.alert-secondary::before,
.alert-light::before {
    content: "•";
    background: #e8edf4;
    color: #687b95;
    font-size: 17px;
}

/* Dismiss button compatibility */
.alert-dismissible {
    padding-right: 48px;
}
.alert-dismissible .close {
    position: absolute;
    top: 8px;
    right: 10px;
    padding: 6px 9px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    font-size: 20px;
    line-height: 1;
    opacity: .65;
    text-shadow: none;
    cursor: pointer;
}
.alert-dismissible .close:hover {
    opacity: 1;
}
.alert-dismissible .btn-close {
    position: absolute;
    top: 12px;
    right: 12px;
    opacity: .65;
}

/* Dark mode */
body.dark-only .alert {
    border-color: #3a485b;
    background: #263447;
    color: #d4deeb;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .12);
}
body.dark-only .alert-success {
    border-color: #315b46;
    border-left-color: #43b77a;
    background: #233b30;
    color: #b6e1c8;
}
body.dark-only .alert-success::before {
    background: #315642;
    color: #91dbaf;
}
body.dark-only .alert-danger,
body.dark-only .alert-error {
    border-color: #654044;
    border-left-color: #e36c6c;
    background: #402d33;
    color: #efc1c1;
}
body.dark-only .alert-danger::before,
body.dark-only .alert-error::before {
    background: #603a40;
    color: #ffaaaa;
}
body.dark-only .alert-warning {
    border-color: #63502f;
    border-left-color: #e2ad4c;
    background: #3c3427;
    color: #ead3a0;
}
body.dark-only .alert-warning::before {
    background: #5b482a;
    color: #f5cf7c;
}
body.dark-only .alert-info {
    border-color: #354f70;
    border-left-color: #6a9ce7;
    background: #27394f;
    color: #bfd6f5;
}
body.dark-only .alert-info::before {
    background: #354e70;
    color: #a9ccff;
}
body.dark-only .alert-secondary,
body.dark-only .alert-light {
    border-color: #414d5d;
    border-left-color: #8495aa;
    background: #303b4b;
    color: #d0d9e5;
}
body.dark-only .alert-secondary::before,
body.dark-only .alert-light::before {
    background: #465469;
    color: #d0dceb;
}

/* Mobile */
@media (max-width: 575px) {
    .alert {
        padding: 12px 13px 12px 42px;
        border-radius: 10px;
        font-size: 12px;
    }
    .alert::before {
        top: 12px;
        left: 11px;
        width: 21px;
        height: 21px;
    }
    .alert-dismissible {
        padding-right: 40px;
    }
}
