/* Korean International Clothing Size Converter Styles */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --light-gray: #ecf0f1;
    --dark-gray: #34495e;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Language Selector Styles */
.language-selector select {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol", "Android Emoji", "EmojiSymbols", sans-serif !important;
    font-size: 1.2em !important;
}

.language-selector option {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol", "Android Emoji", "EmojiSymbols", sans-serif !important;
    font-size: 1.2em !important;
    padding: 8px 12px;
}

header h1 {
    font-weight: 700;
    font-size: 2rem;
}

header p {
    opacity: 0.9;
    font-size: 0.9rem;
}

/* Navigation Tabs */
.nav-pills .nav-link {
    color: var(--dark-gray);
    border-radius: 25px;
    margin: 0 5px;
    padding: 12px 20px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-pills .nav-link:hover {
    background-color: var(--light-gray);
    transform: translateY(-2px);
}

.nav-pills .nav-link.active {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 15px 15px 0 0 !important;
    border-bottom: none;
    padding: 15px 20px;
}

.card-header h5 {
    font-weight: 600;
    margin: 0;
}

.card-body {
    padding: 25px;
}

/* Form Elements */
.form-select, .form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-select:focus, .form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 8px;
}

/* Button Styles */
.btn {
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), #5dade2);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, var(--secondary-color));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Table Styles */
.table {
    font-size: 0.9rem;
}

.table-responsive {
    border-radius: 10px;
    overflow: hidden;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(52, 152, 219, 0.05);
}

.table-dark {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-gray));
}

/* Alert Styles */
.alert {
    border-radius: 15px;
    border: none;
    padding: 20px;
    font-weight: 500;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd, #fef7e0);
    color: #856404;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1, #e2f4f7);
    color: #0c5460;
}

/* Result Display */
.result-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid var(--success-color);
    margin-top: 15px;
}

.result-error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid var(--danger-color);
    margin-top: 15px;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-gray)) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.5rem;
        text-align: center;
    }
    
    header p {
        text-align: center;
        margin-top: 10px;
    }
    
    .nav-pills .nav-link {
        font-size: 0.9rem;
        padding: 10px 15px;
        margin: 2px;
    }
    
    .card-body {
        padding: 20px 15px;
    }
    
    .table-responsive {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .nav-pills {
        flex-direction: column;
    }
    
    .nav-pills .nav-link {
        margin: 5px 0;
        text-align: center;
    }
    
    .table-responsive table {
        font-size: 0.7rem;
    }
    
    .table-responsive th,
    .table-responsive td {
        padding: 0.3rem;
    }
}

/* Animation for size conversion result */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-success,
.result-error {
    animation: fadeInUp 0.5s ease;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Image styling */
.card img {
    max-height: 200px;
    object-fit: cover;
    width: 100%;
}

/* Icon styling */
.fas, .far {
    color: inherit;
}

.text-success .fas {
    color: var(--success-color) !important;
}

/* Custom scrollbar */
.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}
