/*============================================ 
# Aadhar-PAN Verification Plugin CSS
# Paylio Theme Style
# Version: 1.0
# Author: Amit Sharma
============================================*/

/* Frontend User Verification Styling */
.verification-container {
    margin-bottom: 2rem;
    padding: 2.5rem;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(71, 67, 201, 0.1);
    border: 1px solid rgba(71, 67, 201, 0.05);
    font-family: 'Jost', sans-serif;
}

.verification-container h3 {
    color: #0c266c;
    font-weight: 600;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step-section {
    background: linear-gradient(135deg, #f8f9ff 0%, #f2f3f9 100%);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    border: 1px solid rgba(71, 67, 201, 0.08);
    transition: all 0.3s ease;
}

.step-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(71, 67, 201, 0.15);
}

form#aadharForm .file-upload {
    border: 2px dashed #4743c9;
    padding: 2rem;
    text-align: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

form#aadharForm .file-upload:hover {
    border-color: #5bb976;
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.02);
}

form#aadharForm .file-upload i {
    color: #4743c9;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

form#aadharForm .file-upload h5 {
    color: #0c266c;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

form#aadharForm .file-upload input[type="file"] {
    margin-top: 1rem;
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(71, 67, 201, 0.2);
}

.otp-input {
    letter-spacing: 0.5em;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
    color: #0c266c;
    border: 2px solid rgba(71, 67, 201, 0.2);
    border-radius: 12px;
    padding: 1rem;
    background: white;
    transition: all 0.3s ease;
}

.otp-input:focus {
    border-color: #4743c9;
    box-shadow: 0 0 0 3px rgba(71, 67, 201, 0.1);
    outline: none;
}

.step-indicator {
    display: flex;
    margin-bottom: 3rem;
    background: #f8f9ff;
    border-radius: 16px;
    padding: 0.5rem;
    border: 1px solid rgba(71, 67, 201, 0.1);
}

.step {
    flex: 1;
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: 12px;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
    color: #868ea5;
}

.step.active {
    background: linear-gradient(135deg, #4743c9 0%, #291b6b 100%);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(71, 67, 201, 0.3);
}

.step.completed {
    background: linear-gradient(135deg, #5bb976 0%, #00d46a 100%);
    color: white;
    transform: scale(1.02);
}

.step i {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.form-label {
    color: #0c266c;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.form-control {
    border: 2px solid rgba(71, 67, 201, 0.15);
    border-radius: 12px;
    padding: 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus {
    border-color: #4743c9;
    box-shadow: 0 0 0 3px rgba(71, 67, 201, 0.1);
    outline: none;
}

.input-group-text {
    /* background: linear-gradient(135deg, #4743c9 0%, #291b6b 100%); */
    border: none;
    color: white;
    border-radius: 12px 0 0 12px;
    padding: 1rem;
    font-weight: 600;
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 12px 12px 0;
}

.btn-primary {
    background: linear-gradient(135deg, #4743c9 0%, #291b6b 100%);
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(71, 67, 201, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #291b6b 0%, #4743c9 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(71, 67, 201, 0.4);
}

.alert {
    border-radius: 12px;
    border: none;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, #5bb976 0%, #00d46a 100%);
    color: white;
}

.alert-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
}

.alert-info {
    /* background: linear-gradient(135deg, #4743c9 0%, #291b6b 100%); */
    /* color: white; */
}

.mb-3 {
    margin-bottom: 1.5rem !important;
}

/* Success Card Styling */
.verification-success-card {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(71, 67, 201, 0.1);
    border: 2px solid rgba(0, 254, 131, 0.2);
    max-width: 600px;
    margin: 2rem auto;
}

.success-icon {
    margin-bottom: 1.5rem;
}

.success-icon i {
    font-size: 4rem;
    color: #5bb976;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.verification-success-card h3 {
    color: #0c266c;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.verification-success-card p {
    color: #868ea5;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.success-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #5bb976 0%, #00d46a 100%);
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 254, 131, 0.3);
}

.success-btn:hover {
    background: linear-gradient(135deg, #00d46a 0%, #5bb976 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 254, 131, 0.4);
    color: white;
}

/* Admin Panel Styling */
.badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bg-success {
    background: linear-gradient(135deg, #5bb976 0%, #00d46a 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 254, 131, 0.3);
}

.bg-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

/* Simple Verification Message */
.verification-message {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border: 1px solid rgba(71, 67, 201, 0.1);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 10px 40px rgba(71, 67, 201, 0.08);
    text-align: center;
}

.verification-message h2 {
    color: #5bb976;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Jost', sans-serif;
}

.verification-message p {
    color: #6c757d;
    font-size: 1.1rem;
    line-height: 1.6;
    font-family: 'Jost', sans-serif;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 38, 108, 0.8);
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: white;
    margin: 3% auto;
    padding: 2rem;
    width: 90%;
    max-width: 1000px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(71, 67, 201, 0.3);
    border: 1px solid rgba(71, 67, 201, 0.1);
}

.close {
    position: absolute;
    right: 25px;
    top: 20px;
    font-size: 32px;
    cursor: pointer;
    color: #4743c9;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(71, 67, 201, 0.1);
}

.close:hover {
    background: #4743c9;
    color: white;
    transform: rotate(90deg);
}

.document-viewer {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.doc-section {
    flex: 1;
    background: #f8f9ff;
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(71, 67, 201, 0.1);
}

.doc-section h3 {
    color: #0c266c;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.doc-section img {
    max-width: 100%;
    border: 2px solid rgba(71, 67, 201, 0.2);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(71, 67, 201, 0.1);
}

.doc-section iframe {
    border: 2px solid rgba(71, 67, 201, 0.2);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(71, 67, 201, 0.1);
}

/* Enhanced Table Styling */
.wp-list-table {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(71, 67, 201, 0.1);
    border: 1px solid rgba(71, 67, 201, 0.1);
}

.wp-list-table th {
    background: linear-gradient(135deg, #4743c9 0%, #291b6b 100%);
    color: white !important;
    font-weight: 600;
    padding: 1rem;
    border: none;
}

.wp-list-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(71, 67, 201, 0.1);
    vertical-align: middle;
}

.wp-list-table tbody tr:hover {
    background: rgba(71, 67, 201, 0.02);
}

/* Button Styling */
.button {
    background: linear-gradient(135deg, #4743c9 0%, #291b6b 100%);
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(71, 67, 201, 0.3);
}

.button:hover {
    background: linear-gradient(135deg, #291b6b 0%, #4743c9 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(71, 67, 201, 0.4);
    color: white;
}

.button:disabled {
    background: #868ea5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Filter Styling */
#statusFilter {
    border: 2px solid rgba(71, 67, 201, 0.2);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-weight: 500;
    color: #0c266c;
    background: white;
}

#statusFilter:focus {
    border-color: #4743c9;
    outline: none;
    box-shadow: 0 0 0 3px rgba(71, 67, 201, 0.1);
}

#filterButton {
    background: linear-gradient(135deg, #5bb976 0%, #00d46a 100%);
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    color: white;
    font-weight: 600;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 254, 131, 0.3);
}

#filterButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 254, 131, 0.4);
}

/* Manual Verification Page Styling */
.verification-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border: 2px solid rgba(71, 67, 201, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    margin-top: 2rem;
    box-shadow: 0 15px 40px rgba(71, 67, 201, 0.1);
    max-width: 800px;
    font-family: 'Jost', sans-serif;
}

.verification-card h1 {
    color: #0c266c;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.verification-card .description {
    color: #868ea5;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.form-table th {
    color: #0c266c;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1.5rem 1rem 1.5rem 0;
    vertical-align: top;
    width: 200px;
}

.form-table td {
    padding: 1.5rem 0;
}

.input-field {
    width: 100%;
    max-width: 450px;
    padding: 1rem;
    border-radius: 12px;
    border: 2px solid rgba(71, 67, 201, 0.15);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.input-field:focus {
    border-color: #4743c9;
    box-shadow: 0 0 0 3px rgba(71, 67, 201, 0.1);
    outline: none;
}

.select-user {
    width: 100%;
    max-width: 470px;
    padding: 1rem;
    border-radius: 12px;
    border: 2px solid rgba(71, 67, 201, 0.15);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.select-user:focus {
    border-color: #4743c9;
    box-shadow: 0 0 0 3px rgba(71, 67, 201, 0.1);
    outline: none;
}

.custom-file-upload {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #4743c9 0%, #291b6b 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(71, 67, 201, 0.3);
}

.custom-file-upload:hover {
    background: linear-gradient(135deg, #291b6b 0%, #4743c9 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(71, 67, 201, 0.4);
}

.custom-file-upload input {
    display: none;
}

.custom-file-upload .dashicons {
    margin-right: 0.5rem;
    font-size: 20px;
}

.button-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #5bb976 0%, #00d46a 100%);
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 254, 131, 0.3);
}

.button-primary:hover {
    background: linear-gradient(135deg, #00d46a 0%, #5bb976 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 254, 131, 0.4);
}

.description {
    color: #868ea5;
    font-size: 0.95rem;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Form validation styling */
.input-field:invalid,
.select-user:invalid {
    border-color: #ff6b6b;
}

.input-field:valid,
.select-user:valid {
    border-color: #5bb976;
}

/* Admin Enhancements */
.hover-row {
    background: rgba(71, 67, 201, 0.05) !important;
    transform: scale(1.01);
    transition: all 0.2s ease;
}

.animate-badge {
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.button-hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 30px rgba(71, 67, 201, 0.5) !important;
}

.filter-active {
    border-color: #5bb976 !important;
    box-shadow: 0 0 0 3px rgba(0, 254, 131, 0.2) !important;
}

.document-loaded {
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-message {
    color: #ff6b6b;
    font-style: italic;
    text-align: center;
    padding: 2rem;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 8px;
}

/* Modal Enhancements */
.modal {
    animation: modalFadeIn 0.3s ease;
}

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

.modal-content {
    animation: contentSlideIn 0.3s ease;
}

@keyframes contentSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .verification-container {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .step-indicator {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .step {
        margin: 0;
    }
    
    .verification-success-card {
        margin: 1rem;
        padding: 2rem 1.5rem;
    }
    
    .verification-success-card h3 {
        font-size: 1.5rem;
    }
    
    .verification-card {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .form-table th,
    .form-table td {
        display: block;
        width: 100%;
        padding: 0.75rem 0;
    }
    
    .input-field,
    .select-user {
        max-width: 100%;
    }
    
    /* Mobile modal adjustments */
    .modal-content {
        width: 95%;
        margin: 5% auto;
        padding: 1.5rem;
    }
    
    .document-viewer {
        flex-direction: column;
        gap: 1rem;
    }
    
    .doc-section {
        padding: 1rem;
    }
}

/* User Details Modal Styling */
.user-details-viewer {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.detail-section {
    background: #f8f9ff;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(71, 67, 201, 0.1);
}

.detail-section h3 {
    color: #0c266c;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border-bottom: 2px solid #4743c9;
    padding-bottom: 0.5rem;
}

.detail-section .form-table {
    width: 100%;
    border-collapse: collapse;
}

.detail-section .form-table th,
.detail-section .form-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(71, 67, 201, 0.1);
}

.detail-section .form-table th {
    font-weight: 600;
    color: #0c266c;
    width: 40%;
    background: rgba(71, 67, 201, 0.05);
}

.detail-section .form-table td {
    color: #333;
    background: white;
}

#userAddress {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(71, 67, 201, 0.1);
    line-height: 1.6;
    color: #333;
}

/* View Details Button Styling */
.view-user-details {
    background: linear-gradient(135deg, #4743c9 0%, #6c63ff 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.view-user-details:hover {
    background: linear-gradient(135deg, #3a36a8 0%, #5a52d4 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(71, 67, 201, 0.3);
}

/* Mobile responsive for user details */
@media (max-width: 768px) {
    .detail-section .form-table th,
    .detail-section .form-table td {
        display: block;
        width: 100%;
        padding: 0.5rem 0;
        border-bottom: none;
    }
    
    .detail-section .form-table th {
        background: rgba(71, 67, 201, 0.1);
        padding: 0.75rem;
        border-radius: 6px 6px 0 0;
        margin-top: 1rem;
    }
    
    .detail-section .form-table td {
        padding: 0.75rem;
        border-radius: 0 0 6px 6px;
        margin-bottom: 1rem;
    }
    
    .user-details-viewer {
        gap: 1rem;
    }
    
    .detail-section {
        padding: 1rem;
    }
}
