/* =====================================================
   SUCCESS POPUP MODAL STYLES
   File: assets/css/success.css
   ===================================================== */

/* Modal Backdrop */
.vd-success-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.vd-success-modal-backdrop.show {
    display: flex;
    opacity: 1;
}

/* Modal Container */
.vd-success-modal {
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    max-width: 700px;
    width: 85%;
    height: 80vh;
    max-height: 600px;
    overflow: hidden;
    position: relative;
    transform: scale(0.9) translateY(50px);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.vd-success-modal-backdrop.show .vd-success-modal {
    transform: scale(1) translateY(0);
}

/* Modal Content */
.vd-success-modal-content {
    padding: 2rem;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Success Icon */
.vd-success-icon {
    margin-bottom: 1rem;
}

.vd-success-icon i {
    font-size: 3.5rem;
    color: #28a745;
    animation: successBounce 0.6s ease-out;
}

@keyframes successBounce {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* Typography */
.vd-success-modal h1 {
    color: #2c3e50;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.vd-success-modal p {
    color: #5a6c7d;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.6rem;
}

.vd-success-modal p strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Form Number Box */
.vd-form-number-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #28a745;
    border-radius: 15px;
    padding: 1.2rem;
    margin: auto;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 300px;
}

.vd-form-number-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.vd-form-number-box:hover::before {
    left: 100%;
}

.vd-form-number-box h3 {
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vd-form-number-box h2 {
    color: #28a745;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(40, 167, 69, 0.1);
}

/* Action Buttons */
.vd-success-action-buttons {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.vd-success-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.3rem;
    border: none;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.vd-success-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.vd-success-btn:hover::before {
    width: 300px;
    height: 300px;
}

.vd-success-btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.vd-success-btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.vd-success-btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.vd-success-btn-secondary:hover {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

/* Close Button */
.vd-success-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 35px;
    height: 35px;
    background: #f8f9fa;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.vd-success-close:hover {
    background: #e9ecef;
    color: #495057;
    transform: rotate(90deg);
}

/* Print Styles */
@media print {
    .vd-success-modal-backdrop {
        position: static !important;
        background: white !important;
        backdrop-filter: none !important;
    }
    
    .vd-success-modal {
        box-shadow: none !important;
        max-width: 100% !important;
        border: 1px solid #ddd !important;
    }
    
    .vd-success-close,
    .vd-success-action-buttons {
        display: none !important;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .vd-success-modal {
        width: 95%;
        height: 70vh;
        max-height: 500px;
    }
    
    .vd-success-modal-content {
        padding: 1.2rem;
    }
    
    .vd-success-modal h1 {
        font-size: 1.4rem;
    }
    
    .vd-form-number-box h2 {
        font-size: 1.5rem;
    }
    
    .vd-success-action-buttons {
        flex-direction: column;
    }
    
    .vd-success-btn {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1rem;
    }
}