* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #ff4e00, #ec9f05, #56ccf2, #2f80ed);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    max-width: 500px;
    width: 100%;
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
    animation: fadeIn 0.8s ease 0.2s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.converter-box {
    display: flex;
    flex-direction: column;
    gap: 15px;
    animation: fadeIn 1s ease 0.4s both;
}

label {
    color: #555;
    font-weight: bold;
    font-size: 14px;
}

select, input {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s, transform 0.2s;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

select:hover, input:hover {
    transform: scale(1.01);
}

select:focus, input:focus {
    outline: none;
    border-color: #ff4e00;
}

button {
    padding: 15px;
    background: linear-gradient(to right, #ff4e00, #ec9f05, #56ccf2, #2f80ed);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

button:hover {
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

#result {
    background: #f0f0f0;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 20px;
    color: #333;
    font-weight: bold;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#result:empty {
    display: none;
}

footer {
    margin-top: 30px;
    text-align: center;
    color: #888;
    font-size: 14px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    animation: fadeIn 1.2s ease-out 0.6s both;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.social-links a {
    color: #555;
    transition: color 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
}

.social-links a:hover {
    color: #ff4e00;
    transform: translateY(-3px);
}
