/* Black transparent overlay */
.hs-notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.hs-notification-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Generic Notification System Styles */
.hs-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-weight: 500;
    max-width: 90%;
    width: auto;
    pointer-events: none;
}

.hs-notification.show {
    opacity: 1;
    visibility: visible;
    top: 30px;
}

/* Notification Types */
.hs-notification.success {
    background-color: #4CAF50;
    color: white;
}

.hs-notification.error {
    background-color: #F44336;
    color: white;
}

.hs-notification.warning {
    background-color: #FF9800;
    color: white;
}

.hs-notification.info {
    background-color: #2196F3;
    color: white;
}

.hs-notification-icon {
    margin-right: 10px;
    font-size: 20px;
    display: inline-flex;
}

/* Icons */
.hs-notification-icon svg, 
.hs-notification-icon span {
    vertical-align: middle;
}

/* Checkmark animation */
.hs-checkmark {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: #fff;
    stroke-miterlimit: 10;
    margin: 0 auto;
    animation: hs-fill .4s ease-in-out .4s forwards, hs-scale .3s ease-in-out .9s both;
}

.hs-checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: #fff;
    fill: none;
    animation: hs-stroke .6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.hs-checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: hs-stroke .3s cubic-bezier(0.65, 0, 0.45, 1) .8s forwards;
}

/* X mark animation */
.hs-xmark {
    width: 20px;
    height: 20px;
    position: relative;
    display: inline-block;
}

.hs-xmark__line {
    position: absolute;
    height: 3px;
    width: 100%;
    background-color: #fff;
    border-radius: 2px;
    top: 50%;
}

.hs-xmark__line--left {
    transform: rotate(45deg);
    animation: hs-x-left .5s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.hs-xmark__line--right {
    transform: rotate(-45deg);
    animation: hs-x-right .5s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

/* Info icon */
.hs-info-circle {
    width: 20px;
    height: 20px;
    display: inline-block;
    position: relative;
}

.hs-info-circle:before, .hs-info-circle:after {
    content: '';
    position: absolute;
    background: #fff;
    border-radius: 2px;
    left: 50%;
    transform: translateX(-50%);
}

.hs-info-circle:before {
    width: 3px;
    height: 12px;
    top: 4px;
}

.hs-info-circle:after {
    width: 3px;
    height: 3px;
    bottom: 2px;
}

/* Warning icon (exclamation mark) */
.hs-warning-triangle {
    width: 20px;
    height: 20px;
    display: inline-block;
    position: relative;
}

.hs-warning-triangle:before, .hs-warning-triangle:after {
    content: '';
    position: absolute;
    background: #fff;
    border-radius: 2px;
    left: 50%;
    transform: translateX(-50%);
}

.hs-warning-triangle:before {
    width: 3px;
    height: 15px;
    top: 2px;
}

.hs-warning-triangle:after {
    width: 3px;
    height: 3px;
    bottom: 2px;
}

/* Animations */
@keyframes hs-stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes hs-scale {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes hs-fill {
    100% {
        box-shadow: inset 0px 0px 0px 30px rgba(76, 175, 80, 0);
    }
}

@keyframes hs-x-left {
    0% {
        transform: rotate(0) scale(0);
        opacity: 0;
    }
    100% {
        transform: rotate(45deg) scale(1);
        opacity: 1;
    }
}

@keyframes hs-x-right {
    0% {
        transform: rotate(0) scale(0);
        opacity: 0;
    }
    100% {
        transform: rotate(-45deg) scale(1);
        opacity: 1;
    }
}

/* Button loading state - can be applied to any button */
.hs-button-loading {
    position: relative;
    pointer-events: none;
}

.hs-button-loading:after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    border: 3px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: hs-button-loading-spinner 1s ease infinite;
}

@keyframes hs-button-loading-spinner {
    from {
        transform: rotate(0turn);
    }
    to {
        transform: rotate(1turn);
    }
}

@media (max-width: 768px) {
    .hs-notification {
        font-size:14px;
        left: 50%;
        transform: translateX(-50%);
        padding: 15px;
        max-width: 100%;
        width: 75%;
    }
}










/* MODAL SYSTEM STYLES (NEW) */
.hs-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10010; /* Above notifications (10000) and overlay (9999) */
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.hs-modal {
    position: relative;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: all;
}

.hs-modal.show {
    opacity: 1;
    transform: translateY(0);
}

.hs-modal-header {
    padding: 20px 20px 10px;
    font-size: 1.2em;
    font-weight: 600;
    border-bottom: 1px solid #eee;
}

.hs-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
}

.hs-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.hs-modal-btn {
    padding: 8px 16px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s ease;
}

.hs-modal-btn-primary {
    background: #2196F3;
    color: white;
}

.hs-modal-btn-secondary {
    background: #f5f5f5;
    color: #333;
}

.hs-modal-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 10px;
}

/* Make sure overlay works for both notifications and modals */
.hs-notification-overlay.show, 
.hs-modal-container.show ~ .hs-notification-overlay {
    opacity: 1;
    visibility: visible;
}