/* PCRecruiter Deactivation Modal Styles */

.pcr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pcr-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
}

.pcr-modal-content {
    position: relative;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: pcrModalSlideIn 0.3s ease-out;
}

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

.pcr-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f7f7f7;
}

.pcr-modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #23282d;
}

.pcr-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.pcr-modal-close:hover {
    background: #e0e0e0;
    color: #000;
}

.pcr-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.pcr-intro-text {
    margin: 0 0 20px;
    color: #555;
    font-size: 14px;
}

.pcr-option-section {
    margin-bottom: 24px;
    padding: 16px;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.pcr-option-section h3 {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 600;
    color: #23282d;
}

.pcr-option-label {
    display: block;
    padding: 12px;
    margin-bottom: 8px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.pcr-option-label:last-child {
    margin-bottom: 0;
}

.pcr-option-label:hover {
    border-color: #2271b1;
    background: #f0f6fc;
}

.pcr-option-label input[type="radio"] {
    margin: 0 8px 0 0;
    vertical-align: middle;
}

.pcr-option-label input[type="radio"]:checked {
    accent-color: #2271b1;
}

.pcr-option-title {
    display: inline;
    font-weight: 600;
    color: #23282d;
    margin-bottom: 4px;
    font-size: 14px;
}

.pcr-option-description {
    display: block;
    font-size: 13px;
    color: #646970;
    margin-left: 20px;
}

/* Warning and Danger states */
.pcr-warning-option {
    border-color: #dba617;
}

.pcr-warning-option:hover {
    border-color: #dba617;
    background: #fffbf0;
}

.pcr-warning-option input[type="radio"]:checked {
    accent-color: #dba617;
}

.pcr-danger-option {
    border-color: #d63638;
}

.pcr-danger-option:hover {
    border-color: #d63638;
    background: #fff0f0;
}

.pcr-danger-option input[type="radio"]:checked {
    accent-color: #d63638;
}

/* Confirmation section */
.pcr-confirmation-section {
    margin-top: 20px;
    animation: pcrFadeIn 0.3s ease-out;
}

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

.pcr-warning-box {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 6px;
    padding: 16px;
}

.pcr-warning-box p {
    margin: 0 0 12px;
    color: #856404;
    font-weight: 500;
}

.pcr-warning-box p:last-of-type {
    margin-bottom: 8px;
}

.pcr-confirm-input {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-family: monospace;
    font-weight: 600;
}

.pcr-confirm-input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.pcr-confirm-input.pcr-valid {
    border-color: #00a32a;
    background: #f0fff4;
}

.pcr-confirm-input.pcr-invalid {
    border-color: #d63638;
    background: #fff0f0;
}

/* Summary section */
.pcr-summary-section {
    margin-top: 20px;
    padding: 16px;
    background: #f0f6fc;
    border: 1px solid #0073aa;
    border-radius: 6px;
}

.pcr-summary-section h4 {
    margin: 0 0 8px;
    font-size: 14px;
    color: #0073aa;
}

.pcr-summary-section ul {
    margin: 0;
    padding-left: 20px;
}

.pcr-summary-section li {
    margin-bottom: 4px;
    font-size: 13px;
    color: #23282d;
}

/* Modal footer */
.pcr-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #f7f7f7;
}

.pcr-modal-footer .button {
    min-width: 120px;
}

.pcr-confirm-deactivation:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pcr-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .pcr-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .pcr-modal-header,
    .pcr-modal-body,
    .pcr-modal-footer {
        padding: 16px;
    }
    
    .pcr-modal-footer {
        flex-direction: column;
    }
    
    .pcr-modal-footer .button {
        width: 100%;
    }
}
