/**
 * UserInfo Manager - Frontend Styles
 * Isolated and namespaced to prevent theme/plugin conflicts
 * Version: 1.6.0
 */

/* ========================================
   GLASSMORPHISM DESIGN SYSTEM
   Modern, clean, and professional styling
======================================== */

/* Animated Gradient Background - Submission Form */
.userinfo-form-container {
    position: relative !important;
    max-width: 650px !important;
    margin: 20px auto !important;
    padding: 0 !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    isolation: isolate !important;
    box-sizing: border-box !important;
}

.userinfo-form-container::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(
        180deg,
        #667eea 0%,
        #764ba2 100%
    ) !important;
    z-index: -2 !important;
}

.userinfo-form-container::after {
    content: '' !important;
    position: absolute !important;
    inset: 2px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-radius: 18px !important;
    z-index: -1 !important;
}

/* Removed animation - using static vertical gradient for consistency */

/* Glass Form Wrapper */
.userinfo-form-container .userinfo-form {
    position: relative !important;
    z-index: 1 !important;
    padding: 24px !important;
    background: transparent !important;
}

/* Form Groups */
.userinfo-form-container .form-group {
    margin-bottom: 14px !important;
    position: relative !important;
}

.userinfo-form-container .form-group.full-width {
    width: 100% !important;
}

/* Labels */
.userinfo-form-container .form-group label {
    display: block !important;
    margin-bottom: 4px !important;
    font-weight: 600 !important;
    color: #1a202c !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
}

.userinfo-form-container .form-group label span[style*="color: red"] {
    color: #f5576c !important;
}

/* Field Error Messages - Red */
.userinfo-form-container .field-error,
.userinfo-check-container .field-error {
    display: none !important;
    margin-top: 6px !important;
    font-size: 12px !important;
    color: #dc3545 !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
    padding-left: 2px !important;
}

.userinfo-form-container .field-error::before,
.userinfo-check-container .field-error::before {
    content: "⚠ " !important;
    font-size: 12px !important;
    margin-right: 4px !important;
}

/* Form Group with Error */
.userinfo-form-container .form-group.has-error input,
.userinfo-check-container .form-group.has-error input {
    border-color: #dc3545 !important;
    background: rgba(220, 53, 69, 0.05) !important;
}

.userinfo-form-container .form-group.has-error input:focus,
.userinfo-check-container .form-group.has-error input:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1) !important;
}

/* Info Icon Tooltip */
.userinfo-form-container .info-icon {
    position: relative !important;
    display: inline-block !important;
    cursor: help !important;
    margin-left: 4px !important;
    font-size: 12px !important;
}

.userinfo-form-container .info-icon::after {
    content: attr(data-tooltip) !important;
    position: absolute !important;
    bottom: 125% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: rgba(0, 0, 0, 0.9) !important;
    color: #fff !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    white-space: nowrap !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease !important;
    z-index: 1000 !important;
}

.userinfo-form-container .info-icon:hover::after {
    opacity: 1 !important;
}

/* Input Fields - Enhanced Styling */
.userinfo-form-container .form-group input[type="text"],
.userinfo-form-container .form-group input[type="email"],
.userinfo-form-container .form-group input[type="tel"] {
    width: 100% !important;
    padding: 10px 14px !important;
    border: 2px solid rgba(102, 126, 234, 0.2) !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    color: #2d3748 !important;
    background: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
}

.userinfo-form-container .form-group input[type="text"]:focus,
.userinfo-form-container .form-group input[type="email"]:focus,
.userinfo-form-container .form-group input[type="tel"]:focus {
    outline: none !important;
    border-color: #667eea !important;
    background: rgba(255, 255, 255, 1) !important;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1),
                0 4px 12px rgba(102, 126, 234, 0.15) !important;
    transform: translateY(-1px) !important;
}

.userinfo-form-container .form-group input::placeholder {
    color: #a0aec0 !important;
    opacity: 1 !important;
}

/* Custom File Upload Styling - Simple & Compact */

/* Form group containing the upload - standard spacing */
.userinfo-form-container .form-group.full-width:has(.custom-file-upload-wrapper) {
    margin-bottom: 32px !important;
}

/* Fallback for browsers that don't support :has() */
.userinfo-form-container .form-group.full-width {
    margin-bottom: 28px !important;
}

.userinfo-form-container .custom-file-upload-wrapper {
    position: relative !important;
    width: 100% !important;
    margin-bottom: 16px !important;
    text-align: left !important;
}

.userinfo-form-container .hidden-file-input {
    display: none !important;
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    z-index: -9999 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    left: -9999px !important;
    clip: rect(0, 0, 0, 0) !important;
}

/* Extra specificity to hide file input and its button */
.userinfo-form-container input[type="file"].hidden-file-input {
    display: none !important;
}

/* Hide all file input buttons across all browsers */
.userinfo-form-container input[type="file"]::-webkit-file-upload-button {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
}

.userinfo-form-container input[type="file"]::file-selector-button {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
}

/* Firefox specific */
.userinfo-form-container input[type="file"]::-moz-file-upload-button {
    display: none !important;
    visibility: hidden !important;
}

/* MS Edge/IE specific */
.userinfo-form-container input[type="file"]::-ms-browse {
    display: none !important;
    visibility: hidden !important;
}

.userinfo-form-container .custom-file-label {
    display: inline-block !important;
    padding: 12px 32px !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 10px !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3) !important;
}

/* Remove any ::after pseudo-element */
.userinfo-form-container .custom-file-label::after {
    content: none !important;
    display: none !important;
}

.userinfo-form-container .custom-file-label:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653a8b 100%) !important;
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4) !important;
    transform: translateY(-1px) !important;
}

/* Drag over state */
.userinfo-form-container .custom-file-label.dragover {
    background: #e8edff !important;
    border-color: #764ba2 !important;
    border-style: solid !important;
}

.userinfo-form-container .upload-icon {
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    margin-right: 8px !important;
    vertical-align: middle !important;
    color: white !important;
}

.userinfo-form-container .upload-icon svg {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

.userinfo-form-container .upload-text {
    display: inline-block !important;
    vertical-align: middle !important;
}

.userinfo-form-container .upload-title-bengali {
    display: inline-block !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: white !important;
    vertical-align: middle !important;
}

.userinfo-form-container .upload-title {
    display: none !important;
}

.userinfo-form-container .upload-subtitle {
    display: none !important;
}

.userinfo-form-container .upload-format {
    display: none !important;
}

/* Image Preview Container - Compact */
.userinfo-form-container .image-preview-container {
    display: none !important;
    margin-top: 16px !important;
    margin-bottom: 16px !important;
}

.userinfo-form-container .image-preview-container.active {
    display: block !important;
}

.userinfo-form-container .preview-inner {
    position: relative !important;
    padding: 12px !important;
    background: #ffffff !important;
    border-radius: 10px !important;
    border: 2px solid #667eea !important;
    margin-bottom: 12px !important;
}

.userinfo-form-container .preview-inner img {
    width: 100% !important;
    height: auto !important;
    max-height: 250px !important;
    object-fit: contain !important;
    border-radius: 8px !important;
    display: block !important;
}

.userinfo-form-container .remove-image-btn {
    position: relative !important;
    width: 100% !important;
    background: #dc3545 !important;
    color: white !important;
    border: none !important;
    padding: 10px 16px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
    font-family: inherit !important;
}

.userinfo-form-container .remove-image-btn:hover {
    background: #c82333 !important;
}

.userinfo-form-container .remove-image-btn svg {
    width: 16px !important;
    height: 16px !important;
}

/* Submit Button Container - Compact spacing */
.userinfo-form-container .form-group:has(button[type="submit"]) {
    margin-top: 10px !important;
    margin-bottom: 0 !important;
}

/* Fallback for browsers that don't support :has() */
.userinfo-form-container .form-group:last-child {
    margin-top: 10px !important;
}

/* Submit Button - Glassmorphic Design */
.userinfo-form-container .form-group button[type="submit"] {
    width: 100% !important;
    padding: 12px 20px !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4) !important;
    font-family: inherit !important;
    display: block !important;
    margin-top: 6px !important;
}

.userinfo-form-container .form-group button[type="submit"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5) !important;
}

.userinfo-form-container .form-group button[type="submit"]:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3) !important;
}

.userinfo-form-container .form-group button[type="submit"]:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

/* Ripple Effect */
.userinfo-form-container .ripple {
    position: absolute !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.6) !important;
    transform: scale(0) !important;
    animation: userinfo-ripple-animation 0.6s ease-out !important;
    pointer-events: none !important;
}

@keyframes userinfo-ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Success/Error Messages */
.userinfo-form-container .userinfo-success {
    background: rgba(212, 237, 218, 0.9) !important;
    border: 1px solid #c3e6cb !important;
    color: #155724 !important;
    padding: 12px 16px !important;
    margin-bottom: 20px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

.userinfo-form-container .userinfo-errors {
    background: rgba(248, 215, 218, 0.9) !important;
    border: 1px solid #f5c6cb !important;
    color: #721c24 !important;
    padding: 12px 16px !important;
    margin-bottom: 20px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
}

.userinfo-form-container .userinfo-errors ul {
    margin: 0 !important;
    padding-left: 20px !important;
    list-style-type: disc !important;
}

.userinfo-form-container .userinfo-errors li {
    margin-bottom: 4px !important;
}

/* ========================================
   VERIFICATION FORM STYLES
======================================== */

.userinfo-check-container {
    position: relative !important;
    max-width: 600px !important;
    margin: 20px auto !important;
    padding: 0 !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    isolation: isolate !important;
}

.userinfo-check-container::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(
        180deg,
        #667eea 0%,
        #764ba2 100%
    ) !important;
    z-index: -2 !important;
}

.userinfo-check-container::after {
    content: '' !important;
    position: absolute !important;
    inset: 2px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-radius: 18px !important;
    z-index: -1 !important;
}

.userinfo-check-form-wrapper {
    position: relative !important;
    z-index: 1 !important;
    padding: 24px !important;
}

.userinfo-check-form-wrapper h2 {
    text-align: center !important;
    color: #1a202c !important;
    margin-bottom: 16px !important;
    font-size: 20px !important;
    font-weight: 700 !important;
}

.userinfo-check-form .form-group {
    margin-bottom: 14px !important;
}

.userinfo-check-form .form-group label {
    display: block !important;
    margin-bottom: 4px !important;
    font-weight: 600 !important;
    color: #2d3748 !important;
    font-size: 14px !important;
}

.userinfo-check-form .form-group label span[style*="color: #f5576c"] {
    color: #f5576c !important;
}

.userinfo-check-form .form-group input[type="text"] {
    width: 100% !important;
    padding: 10px 14px !important;
    border: 2px solid rgba(102, 126, 234, 0.2) !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    color: #2d3748 !important;
    background: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
}

.userinfo-check-form .form-group input[type="text"]:focus {
    outline: none !important;
    border-color: #667eea !important;
    background: rgba(255, 255, 255, 1) !important;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1) !important;
}

.userinfo-check-form .form-group button {
    width: 100% !important;
    padding: 12px 20px !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4) !important;
    font-family: inherit !important;
}

.userinfo-check-form .form-group button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5) !important;
}

.userinfo-check-form .form-group button:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

/* Check form button container spacing */
.userinfo-check-form .form-group:last-child {
    margin-top: 10px !important;
    margin-bottom: 0 !important;
}

.userinfo-check-form .loading-spinner {
    display: inline-block !important;
    width: 14px !important;
    height: 14px !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-top-color: white !important;
    border-radius: 50% !important;
    animation: userinfo-spin 0.6s linear infinite !important;
    margin-left: 8px !important;
    vertical-align: middle !important;
}

@keyframes userinfo-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Verification Results */
#verification-result {
    margin-top: 24px !important;
    display: none;
}

.verification-success,
.verification-error {
    padding: 24px !important;
    border-radius: 12px !important;
    animation: userinfo-slideIn 0.3s ease-out !important;
}

.verification-success {
    background: rgba(212, 237, 218, 0.9) !important;
    border: 1px solid #c3e6cb !important;
}

.verification-success h3 {
    color: #155724 !important;
    margin: 0 0 20px 0 !important;
    font-size: 18px !important;
}

.verification-error {
    background: rgba(248, 215, 218, 0.9) !important;
    border: 1px solid #f5c6cb !important;
    color: #721c24 !important;
    font-size: 15px !important;
}

.user-detail {
    display: flex !important;
    justify-content: space-between !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    align-items: flex-start !important;
}

.user-detail:last-child {
    border-bottom: none !important;
}

.user-detail-label {
    font-weight: 600 !important;
    color: #2d3748 !important;
    flex-shrink: 0 !important;
    min-width: 100px !important;
}

.user-detail-value {
    color: #4a5568 !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    text-align: right !important;
    flex: 1 !important;
    min-width: 0 !important;
}

.status-badge {
    display: inline-block !important;
    padding: 8px 20px !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    margin-top: 8px !important;
}

.status-badge.status-valid {
    background: #28a745 !important;
    color: white !important;
}

.status-badge.status-invalid {
    background: #dc3545 !important;
    color: white !important;
}

.nid-image-container {
    margin-top: 20px !important;
    text-align: center !important;
}

.nid-image-container img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
    margin-top: 10px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

@keyframes userinfo-slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (max-width: 768px) {
    /* Aggressive spacing reduction for mobile - fit on one screen */
    .userinfo-form-container,
    .userinfo-check-container {
        margin: 8px auto !important;
        border-radius: 12px !important;
    }

    .userinfo-form-container .userinfo-form,
    .userinfo-check-form-wrapper {
        padding: 14px !important;
    }

    /* Reduce form group spacing dramatically */
    .userinfo-form-container .form-group,
    .userinfo-check-form .form-group {
        margin-bottom: 10px !important;
    }

    /* Reduce label spacing */
    .userinfo-form-container .form-group label,
    .userinfo-check-form .form-group label {
        margin-bottom: 3px !important;
        font-size: 13px !important;
        line-height: 1.2 !important;
    }

    /* Compact input fields */
    .userinfo-form-container .form-group input,
    .userinfo-check-form .form-group input {
        font-size: 14px !important;
        padding: 8px 12px !important;
        border-radius: 8px !important;
    }

    /* Compact submit button */
    .userinfo-form-container .form-group button[type="submit"],
    .userinfo-check-form .form-group button {
        font-size: 14px !important;
        padding: 10px 16px !important;
        border-radius: 8px !important;
    }

    /* Reduce button container spacing */
    .userinfo-form-container .form-group:has(button[type="submit"]),
    .userinfo-check-form .form-group:last-child {
        margin-top: 6px !important;
        margin-bottom: 0 !important;
    }

    /* Reduce heading size */
    .userinfo-check-form-wrapper h2 {
        font-size: 17px !important;
        margin-bottom: 10px !important;
    }

    /* Reduce field error spacing */
    .userinfo-form-container .field-error,
    .userinfo-check-container .field-error {
        margin-top: 3px !important;
        font-size: 11px !important;
    }

    /* Hide Bengali upload text on mobile */
    .userinfo-form-container .upload-title-bengali {
        display: none !important;
    }

    /* Verification Result Responsive Fixes */
    .verification-success,
    .verification-error {
        padding: 16px !important;
    }

    .user-detail {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 12px 0 !important;
        gap: 4px !important;
    }

    .user-detail-label {
        min-width: auto !important;
        margin-bottom: 4px !important;
    }

    .user-detail-value {
        text-align: left !important;
        font-size: 14px !important;
        width: 100% !important;
    }

    .verification-success h3 {
        font-size: 16px !important;
    }

    .nid-image-container {
        padding: 12px 0 !important;
    }

    .nid-image-container img {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* Extra compact mode for small mobile devices */
@media (max-width: 480px) {
    /* Ultra-compact container */
    .userinfo-form-container,
    .userinfo-check-container {
        margin: 4px auto !important;
        border-radius: 10px !important;
    }

    /* Minimal padding */
    .userinfo-form-container .userinfo-form,
    .userinfo-check-form-wrapper {
        padding: 10px !important;
    }

    /* Minimal form group spacing */
    .userinfo-form-container .form-group,
    .userinfo-check-form .form-group {
        margin-bottom: 7px !important;
    }

    /* Ultra-compact labels */
    .userinfo-form-container .form-group label,
    .userinfo-check-form .form-group label {
        margin-bottom: 2px !important;
        font-size: 12px !important;
        line-height: 1.2 !important;
    }

    /* Ultra-compact inputs */
    .userinfo-form-container .form-group input,
    .userinfo-check-form .form-group input {
        font-size: 13px !important;
        padding: 6px 10px !important;
        border-radius: 6px !important;
    }

    /* Ultra-compact button */
    .userinfo-form-container .form-group button[type="submit"],
    .userinfo-check-form .form-group button {
        font-size: 13px !important;
        padding: 8px 12px !important;
        border-radius: 6px !important;
    }

    /* Minimal button spacing */
    .userinfo-form-container .form-group:has(button[type="submit"]),
    .userinfo-check-form .form-group:last-child {
        margin-top: 4px !important;
    }

    /* Smaller heading */
    .userinfo-check-form-wrapper h2 {
        font-size: 14px !important;
        margin-bottom: 8px !important;
    }

    /* Minimal error message spacing */
    .userinfo-form-container .field-error,
    .userinfo-check-container .field-error {
        margin-top: 2px !important;
        font-size: 10px !important;
    }

    /* Compact verification results */
    .verification-success,
    .verification-error {
        padding: 12px !important;
    }

    .user-detail {
        padding: 8px 0 !important;
    }
}

/* Ensure no conflicts with WordPress admin styles */
body:not(.wp-admin) .userinfo-form-container *,
body:not(.wp-admin) .userinfo-check-container * {
    box-sizing: border-box !important;
}

/* Hide WordPress block elements that may appear after forms */
.userinfo-form-container + .wp-block-quote,
.userinfo-form-container + blockquote,
.userinfo-check-container + .wp-block-quote,
.userinfo-check-container + blockquote {
    display: none !important;
}

/* Hide empty WordPress block elements */
.wp-block-quote.is-layout-flow:empty,
blockquote.wp-block-quote:empty {
    display: none !important;
}

/* ========================================
   MODAL STYLES
======================================== */

/* Modal Overlay */
.userinfo-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 999999 !important;
    display: none !important;
}

.userinfo-modal.show {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    animation: userinfo-fadeIn 0.3s ease !important;
}

.userinfo-modal-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
}

/* Modal Content */
.userinfo-modal-content {
    position: relative !important;
    background: white !important;
    border-radius: 16px !important;
    padding: 24px !important;
    max-width: 420px !important;
    width: 90% !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    z-index: 1 !important;
    text-align: center !important;
    animation: userinfo-slideUp 0.4s ease !important;
}

/* Close Button */
.userinfo-modal-close {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    background: transparent !important;
    border: none !important;
    font-size: 28px !important;
    color: #999 !important;
    cursor: pointer !important;
    line-height: 1 !important;
    padding: 0 !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: all 0.2s ease !important;
}

.userinfo-modal-close:hover {
    background: #f5f5f5 !important;
    color: #333 !important;
}

/* Modal Icon */
.userinfo-modal-icon {
    margin: 0 auto 16px !important;
    width: 64px !important;
    height: 64px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 36px !important;
    font-weight: bold !important;
}

.userinfo-modal-icon-success,
.userinfo-modal-icon-error {
    display: none !important;
}

.userinfo-modal.success .userinfo-modal-icon {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
    color: white !important;
    box-shadow: 0 4px 20px rgba(17, 153, 142, 0.4) !important;
}

.userinfo-modal.success .userinfo-modal-icon-success {
    display: block !important;
    animation: userinfo-successPop 0.5s ease 0.2s backwards !important;
}

.userinfo-modal.error .userinfo-modal-icon {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%) !important;
    color: white !important;
    box-shadow: 0 4px 20px rgba(235, 51, 73, 0.4) !important;
}

.userinfo-modal.error .userinfo-modal-icon-error {
    display: block !important;
    animation: userinfo-errorShake 0.5s ease 0.2s backwards !important;
}

/* Modal Title */
.userinfo-modal-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1a202c !important;
    margin: 0 0 12px !important;
    line-height: 1.3 !important;
}

/* Modal Body */
.userinfo-modal-body {
    font-size: 15px !important;
    color: #4a5568 !important;
    line-height: 1.5 !important;
    margin-bottom: 20px !important;
}

.userinfo-modal-body strong {
    color: #1a202c !important;
    font-weight: 600 !important;
}

/* Registration ID Display */
.userinfo-registration-id-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    padding: 12px 16px !important;
    border-radius: 10px !important;
    margin: 12px 0 !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3) !important;
}

.userinfo-registration-id-label {
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    opacity: 0.9 !important;
    margin-bottom: 4px !important;
}

.userinfo-registration-id-value {
    font-size: 24px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    font-family: 'Courier New', monospace !important;
}

/* Modal Button */
.userinfo-modal-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    padding: 10px 28px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3) !important;
}

.userinfo-modal-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4) !important;
}

.userinfo-modal-btn:active {
    transform: translateY(0) !important;
}

/* Modal Animations */
@keyframes userinfo-fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes userinfo-successPop {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes userinfo-errorShake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}

/* Mobile Modal Styles */
@media (max-width: 480px) {
    .userinfo-modal-content {
        padding: 20px !important;
        max-width: 95% !important;
    }

    .userinfo-modal-icon {
        width: 56px !important;
        height: 56px !important;
        font-size: 32px !important;
        margin-bottom: 12px !important;
    }

    .userinfo-modal-title {
        font-size: 18px !important;
        margin-bottom: 10px !important;
    }

    .userinfo-modal-body {
        font-size: 14px !important;
        margin-bottom: 16px !important;
    }

    .userinfo-registration-id-box {
        padding: 10px 12px !important;
        margin: 10px 0 !important;
    }

    .userinfo-registration-id-label {
        font-size: 10px !important;
        margin-bottom: 3px !important;
    }

    .userinfo-registration-id-value {
        font-size: 20px !important;
    }

    .userinfo-modal-btn {
        width: 100% !important;
        padding: 10px 20px !important;
        font-size: 14px !important;
    }
}
