/* 🎯 MODAL COMPONENT STYLES
   Professional modal system for job creation and editing
   Consistent with candidate management interface */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.modal--active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.modal__content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1001;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal__header {
    padding: 24px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal__header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--gray-900);
}

.modal__close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray-500);
    transition: color 0.2s;
}

.modal__close:hover {
    color: var(--gray-700);
}

.modal__body {
    padding: 24px;
}

.modal__footer {
    padding: 20px 24px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Form Grid System */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 500;
    color: var(--gray-700);
    font-size: 14px;
}

.form-input, .form-select, .form-textarea {
    padding: 12px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    font-family: inherit;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px var(--primary-100);
}

.form-input:hover, .form-select:hover, .form-textarea:hover {
    border-color: var(--gray-400);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

/* Input Method Tabs */
.input-methods {
    display: flex;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 24px;
    background: var(--gray-50);
    border-radius: 8px 8px 0 0;
}

.input-method-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: var(--gray-600);
    transition: all 0.2s;
    flex: 1;
    text-align: center;
}

.input-method-tab:hover {
    color: var(--primary-600);
    background: var(--gray-100);
}

.input-method-tab.active {
    color: var(--primary-600);
    border-bottom-color: var(--primary-600);
    background: white;
}

.input-method-content {
    display: none;
}

.input-method-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Confidence Indicators */
.confidence-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
    margin-left: 8px;
}

.confidence-high {
    background: var(--success);
    color: white;
}

.confidence-medium {
    background: var(--warning);
    color: white;
}

.confidence-low {
    background: var(--error);
    color: white;
}

/* Parsed Data Review */
.parsed-review {
    border-top: 1px solid var(--gray-200);
    padding-top: 20px;
    margin-top: 20px;
    display: none;
}

.parsed-review h4 {
    margin-bottom: 16px;
    color: var(--gray-800);
    font-size: 16px;
    font-weight: 600;
}

.skills-display {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

/* File Upload in Modal */
.modal .file-drop-zone {
    border: 2px dashed var(--gray-300);
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    background: var(--gray-50);
    transition: all 0.3s ease;
    cursor: pointer;
}

.modal .file-drop-zone:hover {
    border-color: var(--primary-500);
    background: var(--primary-50);
}

.modal .file-drop-zone.drop-zone--active {
    border-color: var(--primary-600);
    background: var(--primary-100);
    transform: scale(1.02);
}

.modal .drop-zone-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.modal .file-input {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal__content {
        width: 95%;
        margin: 20px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .input-methods {
        flex-direction: column;
    }
    
    .input-method-tab {
        text-align: left;
    }
}
