/**
 * Enerpac Popup Notifications — Core Styles
 */
.enerpac-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}

.enerpac-popup.show {
    opacity: 1;
    visibility: visible;
}

.enerpac-popup.show .enerpac-popup__content {
    transform: scale(1);
}

/* Overlay */
.enerpac-popup__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .5);
    backdrop-filter: blur(2px);
}

/* Content box */
.enerpac-popup__content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    max-width: 400px;
    width: calc(100% - 32px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, .2);
    text-align: center;
    transform: scale(.9);
    transition: transform .3s ease;
    z-index: 1;
}

@media (max-width: 575px) {
    .enerpac-popup__content {
        padding: 24px;
        max-width: calc(100% - 32px);
    }
}

/* Icon */
.enerpac-popup__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 32px;
}

.enerpac-popup__icon.loading {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    animation: enerpac-spin 1s linear infinite;
}

.enerpac-popup__icon.success {
    background-color: #d4edda;
    color: #28a745;
}
.enerpac-popup__icon.success::before {
    content: "\2713";
    font-weight: bold;
}

.enerpac-popup__icon.error {
    background-color: #f8d7da;
    color: #dc3545;
}
.enerpac-popup__icon.error::before {
    content: "\2715";
    font-weight: bold;
}

.enerpac-popup__icon.warning {
    background-color: #fff3cd;
    color: #ffc107;
}
.enerpac-popup__icon.warning::before {
    content: "!";
    font-weight: bold;
}

.enerpac-popup__icon.info {
    background-color: #d1ecf1;
    color: #17a2b8;
}
.enerpac-popup__icon.info::before {
    content: "i";
    font-weight: bold;
    font-style: italic;
}

@media (max-width: 575px) {
    .enerpac-popup__icon {
        width: 56px;
        height: 56px;
        font-size: 28px;
        margin-bottom: 16px;
    }
}

/* Message */
.enerpac-popup__message {
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    margin-bottom: 24px;
}

@media (max-width: 575px) {
    .enerpac-popup__message {
        font-size: 14px;
        margin-bottom: 20px;
    }
}

/* Actions */
.enerpac-popup__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 575px) {
    .enerpac-popup__actions {
        flex-direction: column;
    }
}

.enerpac-popup__actions button {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s ease;
    min-width: 100px;
}

.enerpac-popup__actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

.enerpac-popup__actions button:active {
    transform: translateY(0);
}

.enerpac-popup__actions button:disabled {
    opacity: .6;
    cursor: not-allowed;
    pointer-events: none;
}

.enerpac-popup__actions button.btn-primary {
    background-color: #007bff;
    color: #fff;
}
.enerpac-popup__actions button.btn-primary:hover {
    background-color: #0056b3;
}

.enerpac-popup__actions button.btn-success {
    background-color: #28a745;
    color: #fff;
}
.enerpac-popup__actions button.btn-success:hover {
    background-color: #218838;
}

.enerpac-popup__actions button.btn-secondary {
    background-color: #6c757d;
    color: #fff;
}
.enerpac-popup__actions button.btn-secondary:hover {
    background-color: #5a6268;
}

.enerpac-popup__actions button.btn-danger {
    background-color: #dc3545;
    color: #fff;
}
.enerpac-popup__actions button.btn-danger:hover {
    background-color: #c82333;
}

@media (max-width: 575px) {
    .enerpac-popup__actions button {
        width: 100%;
        min-width: auto;
    }
}

/* Spinner keyframe */
@keyframes enerpac-spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Prevent body scroll */
body.enerpac-popup-open {
    overflow: hidden;
}
