/* 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;
    pointer-events: all;
}

/* NOTIFICATION SYSTEM STYLES (with icons) */
.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;
}

/* Container for the warning icon */
.hs-warning-triangle {
    width: 20px; /* Adjusted width for a better shape */
    height: 20px; /* Adjusted height */
    display: inline-block;
    position: relative;
    background-color: #FFF; /* The yellow background for the triangle */
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%); /* Creates the triangle shape */
}

/* Exclamation mark's top bar */
.hs-warning-triangle:before {
    content: '';
    position: absolute;
    background: #FFC; /* Dark color for visibility against yellow */
    border-radius: 1px;
    width: 3px;
    height: 12px; /* Adjusted height for proportion */
    top: 6px; /* Positioned slightly from the top */
    left: 50%;
    transform: translateX(-50%);
}

/* Exclamation mark's dot */
.hs-warning-triangle:after {
    content: '';
    position: absolute;
    background: #000; /* Dark color for visibility */
    border-radius: 50%; /* Changed to 50% for a perfect circle dot */
    width: 3px;
    height: 3px;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
}

/* 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 */
.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);
    }
}

/* MODAL SYSTEM STYLES (ENHANCED) */
.hs-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10010;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.hs-modal {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 350px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: all;
    overflow: hidden;
    text-align: center;
}

.hs-modal.show {
    opacity: 1;
    transform: translateY(0);
}

.hs-modal-header {
    padding: 24px 20px 16px;
    font-size: 1.2em;
    font-weight: 600;
}

.hs-modal-body {
    padding: 0 20px 20px;
    overflow-y: auto;
    flex-grow: 1;
    color: #555;
    line-height: 1.5;
}

.hs-modal-footer {
    padding: 0 20px 24px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.hs-modal-btn {
    padding: 12px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 45%;
    max-width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.hs-modal-btn-primary {
    background: #2196F3;
    color: white;
}

.hs-modal-btn-secondary {
    background: #f5f5f5;
    color: #333;
}

.hs-modal-btn-cancel {
    background: transparent;
    border: 1px solid #ff375f;
    color: #ff375f;
}

.hs-modal-btn-delete {
    background: #ff375f;
    color: white;
}

.hs-modal-icon-container {
    margin-bottom: 16px;
}

.hs-modal-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ff375f;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
	margin-top:20px;
}

.hs-modal-icon svg,
.hs-modal-icon i {
    color: #fff;
    font-size: 26px;
}

.hs-modal-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 16px;
    box-sizing: border-box;
}



/* Accept modal styling */
.hs-modal.confirmation.accept .hs-modal-icon {
    background-color: #4CAF50;
}

.hs-modal.confirmation.accept .hs-modal-btn-accept {
    background-color: #4CAF50;
    color: #FFF;
}

.hs-modal.confirmation.accept .hs-modal-btn-cancel {
    color: #4CAF50;
    border-color: #4CAF50;
}



/* Responsive adjustments */
@media (max-width: 768px) {
    .hs-notification {
        font-size:14px;
        left: 50%;
        transform: translateX(-50%);
        padding: 15px;
        max-width: 100%;
        width: 75%;
    }
    
    .hs-modal {
        max-width: 50%;
    }
    
    .hs-modal-btn {
        padding: 10px 12px;
        font-size: 14px;
    }
}

/* Responsive adjustments */
@media (max-width: 640px) {
    
    .hs-modal {
        max-width: 85%;
    }

}