/* Frontend styles for Stock Alert */

.act-stock-alert-container {
    margin-top: 15px;
    margin-bottom: 15px;
}

.act-stock-alert-btn {
    width: 100%;
    background: linear-gradient(135deg, #c41e3a 0%, #a01830 100%);
    color: #ffffff;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    display: block;
    letter-spacing: 1.2px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 8px 20px rgba(196, 30, 58, 0.25);
    position: relative;
    overflow: hidden;
    line-height: 36px;
    padding: 0 18px;
}

.act-stock-alert-btn i {
    font-size: 16px;
}

.act-stock-alert-btn:hover {
    color: white;
}

/* Modal styles */
.act-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
}

.act-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.act-modal-content {
    position: relative;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: actFadeIn 0.3s ease-out;
}

@keyframes actFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.act-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.act-modal-content h3 {
    text-align: center;
    margin-top: 0;
    color: #333;
}

.act-form-group {
    width: 100%;
    margin-bottom: 15px;
}

#act-alert-email {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: transparent;
}

#act-alert-email::placeholder {
    color: rgb(109, 109, 109);
}

.act-submit-container {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-bottom: 15px;
}

.act-alert-submit {
    flex: 1;
    background: linear-gradient(135deg, #c41e3a 0%, #a01830 100%);
    color: #ffffff;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    display: block;
    letter-spacing: 1.2px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 8px 20px rgba(196, 30, 58, 0.25);
    position: relative;
    overflow: hidden;
    line-height: 36px;
    padding: 0 18px;
}

.act-alert-submit:hover {
    color: white;
}

.act-submit-loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(196, 30, 58, 0.2);
    border-top: 2px solid #c41e3a;
    border-radius: 50%;
    animation: act-spin 0.8s linear infinite;
    flex-shrink: 0;
}

@keyframes act-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.act-alert-msg {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

.act-alert-msg.success {
    background-color: #dff0d8;
    color: #3c763d;
    display: block;
}

.act-alert-msg.error {
    width: 100%;
    background-color: #f2dede;
    color: #a94442;
    display: block;
}