
/* URL Encoder 전용 스타일 */
.url-encoder-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 카드 스타일 개선 */
.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.card-title {
    color: #495057;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

/* 텍스트 영역 스타일 */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.font-monospace {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 인코딩 옵션 스타일 */
.encoding-options {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid #007bff;
}

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

.form-check-input:checked {
    background-color: #007bff;
    border-color: #007bff;
}

.form-check-label {
    font-weight: 500;
    color: #495057;
}

/* 버튼 스타일 */
.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #545b62);
    border: none;
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    border: none;
}

/* 빠른 입력 버튼 */
.quick-input {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid #28a745;
}

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

/* 변환 정보 스타일 */
.conversion-info .alert {
    border: none;
    border-left: 4px solid #17a2b8;
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
}

/* URL 검증 스타일 */
.url-validation .alert-success {
    border-left: 4px solid #28a745;
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
}

/* 결과 액션 버튼 */
#resultActions {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid #ffc107;
}

/* 유용한 링크 스타일 */
.useful-links {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid #6f42c1;
}

.useful-links .list-group-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid #dee2e6;
}

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

/* 히스토리 테이블 스타일 */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: none;
    font-weight: 600;
    color: #495057;
}

.table tbody tr {
    transition: background-color 0.3s ease;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

.table code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    color: #e83e8c;
    font-size: 0.8rem;
}

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

/* 알림 스타일 */
.url-encoder-alert {
    margin-bottom: 20px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }
    
    .card-body {
        padding: 20px 15px;
    }
    
    .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;
    }
    
    .form-control {
        font-size: 0.9rem;
    }
    
    .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: #f1f1f1;
    border-radius: 4px;
}

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

.form-control::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

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

.btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

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

.card-title .fas {
    color: #007bff;
}

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