/* === BASE MODAL STYLES === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(38, 65, 67, 0.6);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content.profile-card {
    width: 90%;
    max-width: 500px;
    padding: 0;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.modal-overlay.active .modal-content.profile-card {
    transform: scale(1);
}

/* Larger modal variant */
.modal-content.profile-card.large {
    max-width: 800px;
}

.modal-header {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #264143;
    position: relative;
    flex-shrink: 0;
    background-color: #264143; /* Dark background */
}

.modal-icon-container {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 16px;
    font-size: 20px;
    background-color: rgba(255, 255, 255, 0.1);
}

.modal-icon-container.success { color: #28a745; }
.modal-icon-container.error { color: #dc3545; }
.modal-icon-container.warning { color: #ffc107; }
.modal-icon-container.info { color: #007bff; }

.modal-title-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #EDDCD9; /* Light text for dark header */
    margin: 0;
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    font-weight: 300;
    color: #EDDCD9; /* Light text for dark header */
    opacity: 0.7;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.modal-body {
    padding: 24px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary, #555);
    overflow-y: auto;
}

.modal-body p { margin: 0 0 1rem 0; }
.modal-body p:last-child { margin-bottom: 0; }

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color, #e0e0e0);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background-color: #f7f7f7;
    flex-shrink: 0;
}

/* === KTP VERIFICATION MODAL STYLES === */

/* User Detail Modal */
.user-detail-content .detail-section {
    margin-bottom: 20px;
}
.user-detail-content .section-header {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--border-color);
}
.user-info-grid, .ktp-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}
.info-item.full-width { grid-column: 1 / -1; }
.modal-body .user-detail-content .info-label { font-weight: 600; color: #86676B; font-size: 0.8rem; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.modal-body .user-detail-content .info-value { font-size: 0.95rem; color: #264143; font-weight: 500; }
.ktp-number-display { font-family: monospace; font-size: 1.1rem; font-weight: 600; }
.ktp-image-container img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-top: 10px;
}

/* Rejection Modal */
#rejectionModal .form-group {
    margin-top: 1rem;
}
#rejectionModal .form-hint {
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
}

/* Info Card (used in Approval Modal) */
.info-card {
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 1rem;
}
.info-card.success {
    background-color: #e7f7ef;
    color: #28a745;
    border: 1px solid #b8e9c5;
}
.info-card i {
    font-size: 1.2rem;
}

/* === LEGACY/FALLBACK STYLES (from transaction-history.css) === */
/* This is for the simple .modal class if it's still used somewhere */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}
