/* ========== 파일 가져오기 모달 ========== */
.import-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.import-modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 650px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.import-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.import-modal-close:hover {
    color: #333;
}

.import-modal h2 {
    color: #333;
    margin-bottom: 10px;
}

.import-modal-subtitle {
    color: #666;
    margin-bottom: 20px;
    font-size: 15px;
}

/* 파일 타입 그리드 */
.file-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.file-type-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.file-type-card:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.file-type-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.file-type-label {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
}

.file-type-desc {
    font-size: 12px;
    color: #666;
}

/* 드롭 영역 */
.drop-zone {
    border: 3px dashed #ccc;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    margin: 20px 0;
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.drop-zone-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.drop-zone-text {
    margin: 5px 0;
    font-size: 16px;
    color: #333;
}

.drop-zone-sub {
    font-size: 14px;
    color: #666;
    margin: 5px 0;
}

/* 옵션 */
.import-options {
    margin: 20px 0;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 6px;
}

.import-options label {
    display: block;
    margin: 10px 0;
    cursor: pointer;
    font-size: 14px;
}

.import-options input[type="checkbox"] {
    margin-right: 8px;
}

/* 모달 푸터 */
.import-modal-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 10px;
}

.import-btn-cancel,
.import-btn-confirm {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
}

.import-btn-cancel {
    background: #f0f0f0;
    color: #666;
}

.import-btn-cancel:hover {
    background: #e0e0e0;
}

.import-btn-confirm {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.import-btn-confirm:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.import-btn-confirm:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* 진행률 바 */
.import-progress-bar {
    width: 100%;
    height: 30px;
    background: #f0f0f0;
    border-radius: 15px;
    overflow: hidden;
    margin: 20px 0;
}

.import-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
}

/* 반응형 */
@media (max-width: 768px) {
    .file-type-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .import-modal-content {
        padding: 20px;
        width: 95%;
    }
}
