/**
 * URL Encoder 전용 스타일 - 다크 테마
 */

.url-encoder-container {
    max-width: 1200px;
    margin: 0 auto;
}

.card-title {
    color: var(--text-primary);
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

/* 텍스트 영역 스타일 */
.font-monospace {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 인코딩 옵션 스타일 */
.encoding-options {
    background: rgba(59, 111, 224, 0.05);
    border-radius: var(--radius-md);
    padding: 15px;
    border-left: 4px solid var(--accent-primary);
}

.form-check {
    margin-bottom: 8px;
}

.form-check-input:checked {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.form-check-label {
    font-weight: 500;
    color: var(--text-secondary);
}

/* 버튼 스타일 */
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(27, 30, 36, 0.075);
}

/* 빠른 입력 버튼 */
.quick-input {
    background: rgba(16, 185, 129, 0.05);
    border-radius: var(--radius-md);
    padding: 15px;
    border-left: 4px solid var(--accent-success);
}

.quick-input-btn {
    margin-bottom: 5px;
    text-align: left;
    font-size: 0.85rem;
}

/* 변환 정보 스타일 */
.conversion-info .alert {
    border: none;
    border-left: 4px solid var(--accent-primary);
    background: rgba(59, 111, 224, 0.1);
    color: var(--text-primary);
}

/* URL 검증 스타일 */
.url-validation .alert-success {
    border-left: 4px solid var(--accent-success);
    background: rgba(16, 185, 129, 0.1);
    color: var(--text-primary);
}

/* 결과 액션 버튼 */
#resultActions {
    background: rgba(245, 158, 11, 0.05);
    border-radius: var(--radius-md);
    padding: 15px;
    border-left: 4px solid var(--accent-warning);
}

/* 유용한 링크 스타일 */
.useful-links {
    background: rgba(139, 92, 246, 0.05);
    border-radius: var(--radius-md);
    padding: 15px;
    border-left: 4px solid var(--accent-secondary);
}

.useful-links .list-group-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color-light);
    color: var(--text-secondary);
}

.useful-links .list-group-item:last-child {
    border-bottom: none;
}

/* 히스토리 테이블 스타일 */
#historyTable {
    --bs-table-bg: transparent !important;
    --bs-table-color: var(--text-secondary) !important;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: transparent !important;
}

#historyTable thead th {
    background: #f1f3f7 !important;
    border: none;
    font-weight: 600;
    color: var(--text-primary) !important;
}

#historyTable tbody,
#historyTable tbody tr,
#historyTable tbody td,
#historyTableBody,
#historyTableBody tr,
#historyTableBody td {
    background: transparent !important;
    background-color: transparent !important;
    color: var(--text-secondary) !important;
}

#historyTable tbody tr:hover,
#historyTableBody tr:hover {
    background: #f1f3f7 !important;
}

#historyTable code,
.table code {
    background: rgba(59, 111, 224, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--accent-primary);
    font-size: 0.8rem;
}

/* 테이블 내 small, text-muted 스타일 */
#historyTable small,
#historyTable .text-muted {
    color: var(--text-muted) !important;
}

/* 배지 스타일 */
.badge {
    font-size: 0.75rem;
    padding: 0.4em 0.6em;
}

/* 알림 스타일 */
.url-encoder-alert {
    margin-bottom: 20px;
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
    
    .encoding-options,
    .quick-input,
    .useful-links,
    #resultActions {
        padding: 10px;
    }
}

@media (max-width: 576px) {
    .btn-group-vertical .btn {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .table {
        font-size: 0.8rem;
    }
}

/* 애니메이션 효과 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.conversion-info,
.url-validation,
#resultActions {
    animation: fadeIn 0.3s ease;
}

/* 스크롤바 스타일 - 다크 테마 */
.form-control::-webkit-scrollbar {
    width: 8px;
}

.form-control::-webkit-scrollbar-track {
    background: #f1f3f7;
    border-radius: 4px;
}

.form-control::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.form-control::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 포커스 표시 개선 */
.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(59, 111, 224, 0.25);
}

.btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(59, 111, 224, 0.25);
}

/* 아이콘 스타일 */
.fas {
    margin-right: 5px;
}

.card-title .fas {
    color: var(--accent-primary);
}

/* 로딩 상태 표시 */
.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);
    }
}

/* 히스토리 없음 메시지 */
#noHistoryMessage {
    color: var(--text-muted);
    padding: 2rem;
}
