/* General Reset */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

.mnc-calculator {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.mnc-calculator h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.mnc-description {
    font-size: 16px;
    margin-bottom: 25px;
    color: #555;
}

.mnc-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
}

.mnc-form input[type="text"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.mnc-form input[type="text"]:focus {
    border-color: #0073aa;
    outline: none;
}

.mnc-form button {
    display: inline-block;
    padding: 12px 24px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.mnc-form button:hover {
    background: #005177;
}

.mnc-result {
    margin-top: 25px;
    padding: 15px;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    animation: fadeIn 0.5s ease-in-out;
}

.mnc-error {
    margin-top: 25px;
    padding: 15px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    animation: shake 0.5s ease-in-out;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}