/**
 * Frontend CSS - eKYC Verification Styles
 * Save to: assets/css/frontend.css
 */

/* Modal Overlay */
#ekyc-modal-overlay {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Container Scrollbar */
.wc-ekyc-container::-webkit-scrollbar {
    width: 8px;
}

.wc-ekyc-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.wc-ekyc-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.wc-ekyc-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Button Hover Effects */
.wc-ekyc-step .button {
    transition: all 0.3s ease;
}

.wc-ekyc-step .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.wc-ekyc-step .button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Input File Custom Styling */
#document-type {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#document-type:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

/* Image Preview Containers */
.wc-ekyc-step [id$="-preview"] img,
.wc-ekyc-step [id$="-preview-confirm"] img {
    transition: transform 0.3s ease;
}

.wc-ekyc-step [id$="-preview"] img:hover,
.wc-ekyc-step [id$="-preview-confirm"] img:hover {
    transform: scale(1.02);
}

/* Success Animation */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#step-success {
    animation: slideInUp 0.6s ease;
}

/* Loader Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ekyc-loader {
    animation: spin 1s linear infinite;
}

/* Notice Banners Responsive */
@media screen and (max-width: 768px) {
    .ekyc-dashboard-notice,
    .ekyc-orders-notice {
        flex-direction: column;
        text-align: center;
    }
    
    .ekyc-dashboard-notice > div,
    .ekyc-orders-notice > div {
        width: 100%;
    }
}

/* Modal Responsive */
@media screen and (max-width: 600px) {
    #ekyc-modal-overlay .wc-ekyc-container {
        width: 100%;
        padding: 25px;
        margin: 10px;
        max-height: 95vh;
    }
    
    #close-ekyc-modal {
        top: 10px;
        right: 15px;
        font-size: 28px;
    }
}

/* Selfie Preview Responsive */
@media screen and (max-width: 400px) {
    #selfie-preview {
        width: 250px;
        height: 250px;
    }
}

/* Button Groups */
.wc-ekyc-step [style*="display:flex"] {
    flex-wrap: wrap;
}

/* Smooth Transitions */
.wc-ekyc-step {
    transition: opacity 0.3s ease;
}

/* Focus States */
.wc-ekyc-step button:focus,
.wc-ekyc-step select:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

/* Dashboard Notice Animation */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ekyc-dashboard-notice,
.ekyc-orders-notice {
    animation: fadeInDown 0.5s ease;
}

/* Hover effect for close button */
#close-ekyc-modal:hover {
    color: #d63638;
    transform: rotate(90deg);
    transition: all 0.3s ease;
}

/* Image zoom on click */
.wc-ekyc-step img {
    cursor: pointer;
}

/* Processing Step */
#step-processing {
    text-align: center;
}

#step-processing h3 {
    animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Success Checkmark Animation */
#step-success > div:first-child {
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}