/**
 * Ghoghnoos Research - Verification System Styles
 * Modernized UI
 */

/* Verification Overview */
.gr-verification-overview {
    margin-bottom: 40px;
    padding: 40px;
    background: white;
    border-radius: 20px;
    border: 1px solid #edf2f7;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.gr-verification-levels {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.gr-level-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    position: relative;
    z-index: 2;
}

.gr-level-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e2e8f0;
    font-size: 22px;
    font-weight: 700;
    color: #cbd5e0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 15px;
    position: relative;
}

.gr-level-item.active .gr-level-icon {
    border-color: var(--gr-primary);
    color: var(--gr-primary);
    background: #fff;
    box-shadow: 0 0 0 6px rgba(var(--gr-primary-rgb), 0.08);
}

.gr-level-item.completed .gr-level-icon {
    border-color: #48bb78;
    background: #48bb78;
    color: #fff;
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.2);
}

.gr-level-info h4 {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 700;
    color: #2d3748;
}

.gr-level-info p {
    margin: 0;
    font-size: 12px;
    color: #718096;
    max-width: 160px;
    line-height: 1.6;
}

.gr-level-connector {
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    margin-top: 32px;
    margin-left: -40px;
    margin-right: -40px;
    position: relative;
    z-index: 1;
}

.gr-level-connector.active {
    background: #48bb78;
}

.gr-status-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px 30px;
    border-radius: 16px;
    margin-bottom: 35px;
    border: 1px solid transparent;
}

.gr-status-banner.gr-status-approved {
    background: #f0fff4;
    border-color: #c6f6d5;
    color: #22543d;
}

.gr-status-banner.gr-status-pending {
    background: #fffaf0;
    border-color: #feebc8;
    color: #744210;
}

.gr-status-banner.gr-status-rejected {
    background: #fff5f5;
    border-color: #fed7d7;
    color: #742a2a;
}

.gr-status-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

.gr-status-icon .dashicons {
    font-size: 24px !important;
    width: 24px !important;
    height: 24px !important;
}

.gr-status-content {
    flex: 1;
}

.gr-status-content h4 {
    margin: 0 0 5px 0;
    font-size: 17px;
    font-weight: 700;
}

.gr-status-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.gr-verification-intro {
    text-align: center;
    padding: 40px 20px;
    max-width: 600px;
    margin: 0 auto 40px;
}

.gr-intro-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--gr-primary), var(--gr-primary-dark));
    color: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 15px 30px rgba(var(--gr-primary-rgb), 0.2);
}

.gr-intro-icon .dashicons {
    font-size: 40px !important;
    width: 40px !important;
    height: 40px !important;
}

.gr-verification-intro h3 {
    font-size: 22px;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 10px;
}

.gr-verification-intro p {
    color: #718096;
    font-size: 15px;
    line-height: 1.7;
}

.gr-btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 8px;
}

.gr-form-section {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 25px;
    border: 1px solid #edf2f7;
}

.gr-section-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 25px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gr-section-title:before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--gr-primary);
    border-radius: 2px;
}

/* Document Grid Improvement */
.gr-documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

.gr-document-item {
    background: #f8fafc;
    border: 2px dashed #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
}

.gr-document-item:hover {
    border-color: var(--gr-primary);
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.03);
}

.gr-document-item.has-doc {
    border-style: solid;
    border-color: #e2e8f0;
    background: #fff;
}

.gr-document-header {
    margin-bottom: 15px;
}

.gr-document-label {
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
}

.gr-document-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 8px;
}

/* Status variants */
.gr-status-approved { background: #f0fff4; color: #2f855a; }
.gr-status-pending { background: #fffaf0; color: #9c4221; }
.gr-status-rejected { background: #fff5f5; color: #c53030; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .gr-verification-levels {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .gr-level-connector {
        width: 2px;
        height: 40px;
        margin: -10px 0;
    }
}

/* Profile picture section (Level 1) */
.gr-profile-section .gr-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
}
.gr-optional-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}
.gr-profile-upload {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
}
.gr-profile-avatar {
    flex: 0 0 auto;
}
.gr-profile-avatar img {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    background: #fff;
    display: block;
}
.gr-profile-upload-body {
    flex: 1;
    min-width: 0;
}
.gr-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.gr-profile-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    margin: 0;
}
.gr-profile-upload-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}
.gr-profile-upload-hint {
    margin: 8px 0 0;
    font-size: 12px;
    color: #64748b;
    line-height: 1.7;
}
@media (max-width: 600px) {
    .gr-profile-upload {
        flex-direction: column;
        text-align: center;
    }
    .gr-profile-upload-body {
        width: 100%;
    }
    .gr-profile-upload-hint {
        text-align: center;
    }
}

/* Level 1 success modal */
.gr-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gr-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
}
.gr-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(480px, 92vw);
    background: #fff;
    border-radius: 18px;
    padding: 32px 28px 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
    text-align: center;
    direction: rtl;
}
.gr-modal-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gr-modal-icon .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
}
.gr-modal-dialog h3 {
    margin: 8px 0 8px;
    font-size: 20px;
    color: #0f172a;
}
.gr-modal-dialog p {
    color: #475569;
    line-height: 1.9;
    margin: 0 0 22px;
    font-size: 14px;
}
.gr-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.gr-modal-actions .gr-btn {
    min-width: 160px;
}
body.gr-modal-open {
    overflow: hidden;
}
@media (max-width: 480px) {
    .gr-modal-dialog {
        padding: 24px 18px 18px;
    }
    .gr-modal-actions .gr-btn {
        width: 100%;
        min-width: 0;
    }
}
