/* General Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

/* Calculator Container */
.calculator {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 400px;
    box-sizing: border-box;
}

/* Typography */
h1 {
    color: #333;
    margin-bottom: 10px;
    font-size: 20px;
    text-align: center;
}

/* Language Flags */
.language-flags {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.flag-link {
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.flag-link:hover {
    opacity: 1;
}

.flag-link.active {
    opacity: 1;
    border-bottom: 3px solid #007bff;
    padding-bottom: 2px;
}

.flag-img {
    width: 30px;
    height: 20px;
    object-fit: cover;
    display: block;
    border: 1px solid #ddd;
    border-radius: 3px;
}

/* Form Elements */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-size: 14px;
}

input[type="number"], select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

/* Buttons */
button {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    width: 100%;
}

button:hover {
    background-color: #0056b3;
}

/* Result Display */
.result {
    margin-top: 20px;
    padding: 15px;
    background-color: #e9ecef;
    border-radius: 4px;
    text-align: center;
}

.result-value {
    font-size: 20px;
    font-weight: bold;
    color: #007bff;
}

/* Note */
.note {
    margin-top: 20px;
    font-size: 11px;
    color: #666;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    
    .calculator {
        padding: 15px;
        width: 200px;
    }
}