
/* Unit Converter specific styles */
.converter-card {
    border: none;
    transition: all 0.3s ease;
}

.converter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.card-header {
    border-bottom: none;
    border-radius: 15px 15px 0 0;
}

.converter-input {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}

.converter-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.result-display {
    background: #f8f9fa;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.unit-icon {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.conversion-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #007bff;
    margin: 1rem 0;
}

.quick-convert {
    background: #e9ecef;
    padding: 0.5rem;
    border-radius: 5px;
    margin-top: 0.5rem;
}

.common-conversions {
    font-size: 0.8rem;
    color: #6c757d;
}

.category-header {
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-secondary));
}
.category-selector .list-group-item {
    border-radius: 8px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.category-selector .list-group-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.category-selector .list-group-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

/* 단위 교체 버튼 스타일 */
.btn-swap {
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.btn-swap:hover {
    transform: rotate(180deg);
    box-shadow: 0 3px 10px rgba(0, 123, 255, 0.3);
}

.btn-swap i {
    font-size: 14px;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .btn-swap {
        width: 32px;
        height: 32px;
        margin-bottom: 0;
        margin-top: 5px;
    }
    
    .btn-swap i {
        font-size: 12px;
    }
}

.btn-swap {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.btn-swap:hover {
    transform: rotate(180deg);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.input-section, .output-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
}

.output-section {
    background: #e8f5e8;
}

.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.conversion-table {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(102, 126, 234, 0.05);
}

@media (max-width: 768px) {
    .btn-swap {
        margin: 1rem 0;
    }
    
    .input-section, .output-section {
        margin-bottom: 1rem;
    }
}
