
.font-monospace {
    font-family: 'Courier New', Consolas, monospace;
    font-size: 0.875rem;
}

.conversion-options {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.conversion-stats {
    background-color: #e3f2fd;
}

.table-preview {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

#previewTable {
    background-color: white;
    font-size: 0.75rem;
}

#previewTable th {
    background-color: #e9ecef !important;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

#previewTable td {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.card-title {
    color: #495057;
    border-bottom: 2px solid #17a2b8;
    padding-bottom: 0.5rem;
}

/* JSON 입력 영역 하이라이트 */
#jsonInput:focus {
    border-color: #17a2b8;
    box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
}

/* CSV 출력 영역 스타일 */
#csvOutput {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

/* 버튼 애니메이션 */
#convertBtn {
    transition: all 0.3s ease;
}

#convertBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

#downloadBtn, #copyBtn {
    transition: all 0.3s ease;
}

#downloadBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .row {
        flex-direction: column;
    }
    
    #jsonInput, #csvOutput {
        rows: 10;
    }
    
    .conversion-options {
        margin-bottom: 1rem;
    }
    
    #previewTable {
        font-size: 0.7rem;
    }
    
    #previewTable td {
        max-width: 100px;
    }
}

/* 로딩 애니메이션 */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

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