
/* Unit Converter specific styles */

/* 원본/결과 값 입력: 넓게, 단위 선택: 내용만 보이도록 좁게 */
.unit-converter-value {
    flex: 1;
    min-width: 4rem;
}
.unit-converter-unit {
    width: auto;
    min-width: 5rem;
    max-width: 6.5rem;
    flex-shrink: 0;
}

.converter-card {
    border: none;
    transition: all 0.3s ease;
}

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


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

.converter-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.result-display {
    background: #ffffff;
    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: var(--accent-primary);
    margin: 1rem 0;
}

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

.common-conversions {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.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: #ffffff;
    transform: translateX(5px);
}

.category-selector .list-group-item.active {
    background: linear-gradient(135deg, #3b6fe0 0%, #2c56b8 100%);
    border-color: #3b6fe0;
}

/* 단위 교체 버튼 스타일 */
.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, #3b6fe0 0%, #2c56b8 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: #ffffff;
    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: #3b6fe0;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.conversion-table {
    background: #ffffff;
    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;
    }
}

/* 도구 페이지 카드 헤더 다크 테마 */
.tool-page .card-header.bg-warning {
    background: rgba(245, 158, 11, 0.25) !important;
    border-color: var(--accent-warning);
    color: var(--text-primary) !important;
}

.tool-page .card-header.bg-warning.text-dark {
    color: var(--text-primary) !important;
}
